Commit 2f00844d authored by Ryan C. Gordon's avatar Ryan C. Gordon

Added a FIXME and macro to sun audio.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402062
parent 4ada9445
...@@ -265,7 +265,7 @@ DSP_OpenAudio(_THIS, SDL_AudioSpec * spec) ...@@ -265,7 +265,7 @@ DSP_OpenAudio(_THIS, SDL_AudioSpec * spec)
ulaw_buf = NULL; ulaw_buf = NULL;
/* Determine the audio parameters from the AudioSpec */ /* Determine the audio parameters from the AudioSpec */
switch (spec->format & 0xFF) { switch (SDL_AUDIO_BITSIZE(spec->format)) {
case 8: case 8:
{ /* Unsigned 8 bit audio data */ { /* Unsigned 8 bit audio data */
...@@ -287,6 +287,7 @@ DSP_OpenAudio(_THIS, SDL_AudioSpec * spec) ...@@ -287,6 +287,7 @@ DSP_OpenAudio(_THIS, SDL_AudioSpec * spec)
default: default:
{ {
/* !!! FIXME: fallback to conversion on unsupported types! */
SDL_SetError("Unsupported audio format"); SDL_SetError("Unsupported audio format");
return (-1); return (-1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment