Added a FIXME and macro to sun audio.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 01 Sep 2006 22:48:43 +0000
changeset 2015 152dcc2f089f
parent 2014 7abe37467fa5
child 2016 72fa74928062
Added a FIXME and macro to sun audio.
src/audio/sun/SDL_sunaudio.c
--- a/src/audio/sun/SDL_sunaudio.c	Fri Sep 01 19:29:49 2006 +0000
+++ b/src/audio/sun/SDL_sunaudio.c	Fri Sep 01 22:48:43 2006 +0000
@@ -265,7 +265,7 @@
     ulaw_buf = NULL;
 
     /* Determine the audio parameters from the AudioSpec */
-    switch (spec->format & 0xFF) {
+    switch (SDL_AUDIO_BITSIZE(spec->format)) {
 
     case 8:
         {                       /* Unsigned 8 bit audio data */
@@ -287,6 +287,7 @@
 
     default:
         {
+            /* !!! FIXME: fallback to conversion on unsupported types! */
             SDL_SetError("Unsupported audio format");
             return (-1);
         }