# HG changeset patch # User Ryan C. Gordon # Date 1157150923 0 # Node ID 152dcc2f089fa41e755c4e704f125537ddc76fc5 # Parent 7abe37467fa5eab6e255959fccf122a8b910f962 Added a FIXME and macro to sun audio. diff -r 7abe37467fa5 -r 152dcc2f089f 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); }