aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Aud/AudioRenderer/VoiceIn.cs
blob: fc83b65b591e6487ef84b16deb794adc0a44699f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System.Runtime.InteropServices;

namespace Ryujinx.HLE.HOS.Services.Aud.AudioRenderer
{
    [StructLayout(LayoutKind.Sequential, Size = 0x170, Pack = 1)]
    struct VoiceIn
    {
        public int VoiceSlot;
        public int NodeId;

        public byte FirstUpdate;
        public byte Acquired;

        public PlayState PlayState;

        public SampleFormat SampleFormat;

        public int SampleRate;

        public int Priority;

        public int Unknown14;

        public int ChannelsCount;

        public float Pitch;
        public float Volume;

        public BiquadFilter BiquadFilter0;
        public BiquadFilter BiquadFilter1;

        public int AppendedWaveBuffersCount;

        public int BaseWaveBufferIndex;

        public int Unknown44;

        public long AdpcmCoeffsPosition;
        public long AdpcmCoeffsSize;

        public int VoiceDestination;
        public int Padding;

        public WaveBuffer WaveBuffer0;
        public WaveBuffer WaveBuffer1;
        public WaveBuffer WaveBuffer2;
        public WaveBuffer WaveBuffer3;
    }
}