changeset 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 7abe37467fa5
children 72fa74928062
files src/audio/sun/SDL_sunaudio.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);
         }