Mercurial > SDL_sound_CoreAudio
comparison decoders/ogg.c @ 514:6c4f29fc3d87
Ogg Vorbis files return samples in system byte order by default.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 28 Jul 2006 06:29:19 +0000 |
parents | 3e705c9180e5 |
children | 2df1f5c62d38 |
comparison
equal
deleted
inserted
replaced
513:006e3d6cd2fe | 514:6c4f29fc3d87 |
---|---|
230 * necessary, and SDL_sound will not. If the user didn't specify a | 230 * necessary, and SDL_sound will not. If the user didn't specify a |
231 * desired format, then we pretend the "actual" format is something that | 231 * desired format, then we pretend the "actual" format is something that |
232 * OGG files are apparently commonly encoded in. | 232 * OGG files are apparently commonly encoded in. |
233 */ | 233 */ |
234 sample->actual.format = (sample->desired.format == 0) ? | 234 sample->actual.format = (sample->desired.format == 0) ? |
235 AUDIO_S16LSB : sample->desired.format; | 235 AUDIO_S16SYS : sample->desired.format; |
236 return(1); | 236 return(1); |
237 } /* OGG_open */ | 237 } /* OGG_open */ |
238 | 238 |
239 | 239 |
240 static void OGG_close(Sound_Sample *sample) | 240 static void OGG_close(Sound_Sample *sample) |