diff options
author | Chris Robinson <[email protected]> | 2014-02-23 20:14:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-02-23 20:14:07 -0800 |
commit | 9f43de62ab62577a5159789eebcbb76768750418 (patch) | |
tree | c73d1d9b1948644226f5b8710157ce097c56ad7d /Alc/ALc.c | |
parent | ef8002a83207730568d3cc7babe3351b4beee4e3 (diff) |
Add a return value to FindHrtfFormat
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1803,12 +1803,13 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) { enum DevFmtChannels chans; ALCuint freq; - - FindHrtfFormat(device, &chans, &freq); - device->Frequency = freq; - device->FmtChans = chans; - device->Flags |= DEVICE_CHANNELS_REQUEST | - DEVICE_FREQUENCY_REQUEST; + if(FindHrtfFormat(device, &chans, &freq)) + { + device->Frequency = freq; + device->FmtChans = chans; + device->Flags |= DEVICE_CHANNELS_REQUEST | + DEVICE_FREQUENCY_REQUEST; + } } if(V0(device->Backend,reset)() == ALC_FALSE) |