changeset 12440:56bdb9b7a4bc

use fallback for unsupported formats instead of quitting
author reimar
date Fri, 07 May 2004 16:12:30 +0000
parents 33916977a36e
children cafd695b8eb4
files libao2/ao_sdl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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. */