aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-20 16:43:14 -0700
committerChris Robinson <[email protected]>2014-06-20 16:43:14 -0700
commitbe903d67b87a38616d4b7a901c3bf93441b1cb91 (patch)
tree6db2e9234f790b541637d07007ee17b81b59d094 /Alc/ALc.c
parentfb25a70f9533a8ada104f1d84b1ed9d1eb69ccc0 (diff)
Don't pass the device to HRTF methods
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 80cddf54..1b3e3ba8 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1790,9 +1790,9 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
if((device->Flags&DEVICE_HRTF_REQUEST))
{
- enum DevFmtChannels chans;
- ALCuint freq;
- if(FindHrtfFormat(device, &chans, &freq))
+ enum DevFmtChannels chans = device->FmtChans;
+ ALCuint freq = device->Frequency;
+ if(FindHrtfFormat(&chans, &freq))
{
if(device->Type != Loopback)
{
@@ -1843,7 +1843,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->Hrtf = NULL;
if((device->Flags&DEVICE_HRTF_REQUEST))
{
- device->Hrtf = GetHrtf(device);
+ device->Hrtf = GetHrtf(device->FmtChans, device->Frequency);
if(!device->Hrtf)
device->Flags &= ~DEVICE_HRTF_REQUEST;
}