diff options
author | Chris Robinson <[email protected]> | 2009-09-21 02:53:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-21 02:53:33 -0700 |
commit | e11b59a80f542e08bc877d1447f885fb0f5cc439 (patch) | |
tree | 9295577e517bf06d82eccf29700ac3b20bdfdb1c /Alc/portaudio.c | |
parent | 0ae02e8ad4f77287e4641ab9491c94efac2d402b (diff) |
Return imediately if trying to set an unknown format
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r-- | Alc/portaudio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c index 5e0687b1..fb4b8ed5 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -105,8 +105,10 @@ static ALCboolean pa_open_playback(ALCdevice *device, const ALCchar *deviceName) outParams.sampleFormat = paFloat32; break; default: - outParams.sampleFormat = -1; - AL_PRINT("Unknown format?! %x\n", device->Format); + AL_PRINT("Unknown format: 0x%x\n", device->Format); + device->ExtraData = NULL; + free(data); + return ALC_FALSE; } outParams.channelCount = aluChannelsFromFormat(device->Format); |