Mercurial > sdl-ios-xcode
comparison src/audio/sun/SDL_sunaudio.c @ 2015:152dcc2f089f
Added a FIXME and macro to sun audio.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 01 Sep 2006 22:48:43 +0000 |
parents | c121d94672cb |
children | 5f6550e5184f c8b3d3d13ed1 |
comparison
equal
deleted
inserted
replaced
2014:7abe37467fa5 | 2015:152dcc2f089f |
---|---|
263 audio_fd = -1; | 263 audio_fd = -1; |
264 mixbuf = NULL; | 264 mixbuf = NULL; |
265 ulaw_buf = NULL; | 265 ulaw_buf = NULL; |
266 | 266 |
267 /* Determine the audio parameters from the AudioSpec */ | 267 /* Determine the audio parameters from the AudioSpec */ |
268 switch (spec->format & 0xFF) { | 268 switch (SDL_AUDIO_BITSIZE(spec->format)) { |
269 | 269 |
270 case 8: | 270 case 8: |
271 { /* Unsigned 8 bit audio data */ | 271 { /* Unsigned 8 bit audio data */ |
272 spec->format = AUDIO_U8; | 272 spec->format = AUDIO_U8; |
273 #ifdef AUDIO_SETINFO | 273 #ifdef AUDIO_SETINFO |
285 } | 285 } |
286 break; | 286 break; |
287 | 287 |
288 default: | 288 default: |
289 { | 289 { |
290 /* !!! FIXME: fallback to conversion on unsupported types! */ | |
290 SDL_SetError("Unsupported audio format"); | 291 SDL_SetError("Unsupported audio format"); |
291 return (-1); | 292 return (-1); |
292 } | 293 } |
293 } | 294 } |
294 audio_fmt = spec->format; | 295 audio_fmt = spec->format; |