Added a FIXME and macro to sun audio.
--- 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);
}