diff src/audio/sun/SDL_sunaudio.c @ 2015:152dcc2f089f

Added a FIXME and macro to sun audio.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 01 Sep 2006 22:48:43 +0000
parents c121d94672cb
children 5f6550e5184f c8b3d3d13ed1
line wrap: on
line diff
--- 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);
         }