diff options
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp index e5fa0c89..7d2709ea 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -128,8 +128,8 @@ inline HrtfDirectMixerFunc SelectHrtfMixer(void) void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo) { if(AmbiUpsampler *ambiup{device->AmbiUp.get()}) - ambiup->process(device->Dry.Buffer, device->FOAOut.Buffer, device->FOAOut.NumChannels, - SamplesToDo); + ambiup->process(device->Dry.Buffer, device->Dry.NumChannels, device->FOAOut.Buffer, + device->FOAOut.NumChannels, SamplesToDo); /* HRTF is stereo output only. */ const int lidx{(device->RealOut.ChannelName[0]==FrontLeft) ? 0 : 1}; @@ -147,16 +147,16 @@ void ProcessAmbiDec(ALCdevice *device, ALsizei SamplesToDo) { BFormatDec *ambidec{device->AmbiDecoder.get()}; if(device->Dry.Buffer != device->FOAOut.Buffer) - ambidec->upSample(device->Dry.Buffer, device->FOAOut.Buffer, device->FOAOut.NumChannels, - SamplesToDo); + ambidec->upSample(device->Dry.Buffer, device->Dry.NumChannels, device->FOAOut.Buffer, + device->FOAOut.NumChannels, SamplesToDo); ambidec->process(device->RealOut.Buffer, device->RealOut.NumChannels, device->Dry.Buffer, SamplesToDo); } void ProcessAmbiUp(ALCdevice *device, ALsizei SamplesToDo) { - device->AmbiUp->process(device->RealOut.Buffer, device->FOAOut.Buffer, - device->FOAOut.NumChannels, SamplesToDo); + device->AmbiUp->process(device->RealOut.Buffer, device->RealOut.NumChannels, + device->FOAOut.Buffer, device->FOAOut.NumChannels, SamplesToDo); } void ProcessUhj(ALCdevice *device, ALsizei SamplesToDo) |