Mercurial > sdl-ios-xcode
diff src/audio/SDL_audio.c @ 2053:716cf90f24a0
1.3 branch version of revision 2878.
Fixes Bugzilla #298.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 27 Oct 2006 20:19:48 +0000 |
parents | 5f6550e5184f |
children | 866052b01ee5 |
line wrap: on
line diff
--- a/src/audio/SDL_audio.c Sat Oct 21 18:56:35 2006 +0000 +++ b/src/audio/SDL_audio.c Fri Oct 27 20:19:48 2006 +0000 @@ -688,7 +688,9 @@ return 0; } if (device->convert.needed) { - device->convert.len = desired.size; + device->convert.len = (int) ( ((double) desired.size) / + device->convert.len_ratio ); + device->convert.buf = (Uint8 *) SDL_AllocAudioMem(device->convert.len * device->convert.len_mult);