# HG changeset patch # User reimar # Date 1083946350 0 # Node ID 56bdb9b7a4bc08b893de8605b87e8f5e9b8652c0 # Parent 33916977a36ea5aa33c4427f1208fc04fff43358 use fallback for unsupported formats instead of quitting diff -r 33916977a36e -r 56bdb9b7a4bc libao2/ao_sdl.c --- a/libao2/ao_sdl.c Fri May 07 13:13:11 2004 +0000 +++ b/libao2/ao_sdl.c Fri May 07 16:12:30 2004 +0000 @@ -196,8 +196,9 @@ aspec.format = AUDIO_U16MSB; break; default: + aspec.format = AUDIO_S16LSB; + ao_data.format = AFMT_S16_LE; mp_msg(MSGT_AO,MSGL_WARN,"SDL: Unsupported audio format: 0x%x.\n", format); - return 0; } /* The desired audio frequency in samples-per-second. */