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