aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-08-12 05:26:36 -0700
committerChris Robinson <[email protected]>2016-08-12 05:26:36 -0700
commit770e2ff7ed516a41721d6cde931b3cefc07c190e (patch)
treece6d59d89039aba7339575e5bb0783032289e401 /Alc/panning.c
parentc6c6e3324dd9d5d864b6146ca7a6c6e6369978a6 (diff)
Use a more specialized mixer function for B-Format to HRTF
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 65506303..70494547 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -758,9 +758,8 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin
static void InitHrtfPanning(ALCdevice *device)
{
- ALfloat hrtf_coeffs[4][HRIR_LENGTH][2];
size_t count = 4;
- ALuint i, j;
+ ALuint i;
for(i = 0;i < count;i++)
{
@@ -773,21 +772,12 @@ static void InitHrtfPanning(ALCdevice *device)
device->FOAOut.Ambi = device->Dry.Ambi;
device->FOAOut.CoeffCount = device->Dry.CoeffCount;
- memset(hrtf_coeffs, 0, sizeof(hrtf_coeffs));
- device->Hrtf_IrSize = BuildBFormatHrtf(device->Hrtf, hrtf_coeffs, device->Dry.NumChannels);
+ memset(device->Hrtf_Coeffs, 0, sizeof(device->Hrtf_Coeffs));
+ device->Hrtf_IrSize = BuildBFormatHrtf(device->Hrtf, device->Hrtf_Coeffs,
+ device->Dry.NumChannels);
/* Round up to the nearest multiple of 8 */
device->Hrtf_IrSize = (device->Hrtf_IrSize+7)&~7;
- for(i = 0;i < device->Dry.NumChannels;i++)
- {
- for(j = 0;j < HRIR_LENGTH;j++)
- {
- device->Hrtf_Params[i].Coeffs[j][0] = hrtf_coeffs[i][j][0];
- device->Hrtf_Params[i].Coeffs[j][1] = hrtf_coeffs[i][j][1];
- }
- device->Hrtf_Params[i].Delay[0] = 0;
- device->Hrtf_Params[i].Delay[1] = 0;
- }
}
static void InitUhjPanning(ALCdevice *device)