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/solaris.c | |
parent | 0ae02e8ad4f77287e4641ab9491c94efac2d402b (diff) |
Return imediately if trying to set an unknown format
Diffstat (limited to 'Alc/solaris.c')
-rw-r--r-- | Alc/solaris.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/solaris.c b/Alc/solaris.c index 58d6e081..6f590e5e 100644 --- a/Alc/solaris.c +++ b/Alc/solaris.c @@ -159,7 +159,8 @@ static ALCboolean solaris_reset_playback(ALCdevice *device) info.play.encoding = AUDIO_ENCODING_LINEAR; break; default: - AL_PRINT("Unknown format?! %x\n", device->Format); + AL_PRINT("Unknown format: 0x%x\n", device->Format); + return ALC_FALSE; } numChannels = aluChannelsFromFormat(device->Format); |