From e59b61adb2264b9430ed6a121e2d8238e5ec9fd5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 1 Sep 2006 22:48:43 +0000 Subject: [PATCH] Added a FIXME and macro to sun audio. --- src/audio/sun/SDL_sunaudio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio/sun/SDL_sunaudio.c b/src/audio/sun/SDL_sunaudio.c index 30527149b..0389e7a1a 100644 --- a/src/audio/sun/SDL_sunaudio.c +++ b/src/audio/sun/SDL_sunaudio.c @@ -265,7 +265,7 @@ DSP_OpenAudio(_THIS, SDL_AudioSpec * spec) 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 @@ DSP_OpenAudio(_THIS, SDL_AudioSpec * spec) default: { + /* !!! FIXME: fallback to conversion on unsupported types! */ SDL_SetError("Unsupported audio format"); return (-1); }