aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-08 02:50:34 -0800
committerChris Robinson <[email protected]>2018-12-08 02:50:34 -0800
commit5ea3c8fb609f88446f73c4e0274b733f1bd5f1be (patch)
tree304efc6ab7c5056b6f2222f3613e403c2825b397 /Alc/alu.cpp
parent7695afe0cb3a01ac32f4c04bedb57b3225effd3a (diff)
Use member functions for BFormatDec and AmbiUpsampler
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index f2068ead..34634983 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -109,9 +109,8 @@ namespace {
void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo)
{
if(device->AmbiUp)
- ambiup_process(device->AmbiUp.get(),
- device->Dry.Buffer, device->Dry.NumChannels, device->FOAOut.Buffer,
- SamplesToDo
+ device->AmbiUp->process(device->Dry.Buffer, device->Dry.NumChannels,
+ device->FOAOut.Buffer, SamplesToDo
);
int lidx{GetChannelIdxByName(&device->RealOut, FrontLeft)};
@@ -132,21 +131,18 @@ void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo)
void ProcessAmbiDec(ALCdevice *device, ALsizei SamplesToDo)
{
if(device->Dry.Buffer != device->FOAOut.Buffer)
- bformatdec_upSample(device->AmbiDecoder.get(),
- device->Dry.Buffer, device->FOAOut.Buffer, device->FOAOut.NumChannels,
- SamplesToDo
+ device->AmbiDecoder->upSample(device->Dry.Buffer, device->FOAOut.Buffer,
+ device->FOAOut.NumChannels, SamplesToDo
);
- bformatdec_process(device->AmbiDecoder.get(),
- device->RealOut.Buffer, device->RealOut.NumChannels, device->Dry.Buffer,
- SamplesToDo
+ device->AmbiDecoder->process(device->RealOut.Buffer, device->RealOut.NumChannels,
+ device->Dry.Buffer, SamplesToDo
);
}
void ProcessAmbiUp(ALCdevice *device, ALsizei SamplesToDo)
{
- ambiup_process(device->AmbiUp.get(),
- device->RealOut.Buffer, device->RealOut.NumChannels, device->FOAOut.Buffer,
- SamplesToDo
+ device->AmbiUp->process(device->RealOut.Buffer, device->RealOut.NumChannels,
+ device->FOAOut.Buffer, SamplesToDo
);
}