Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added a FIXME and macro to sun audio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 1, 2006
1 parent a58bbb6 commit 5bb44ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio/sun/SDL_sunaudio.c
Expand Up @@ -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 */
Expand All @@ -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);
}
Expand Down

0 comments on commit 5bb44ba

Please sign in to comment.