Mercurial > sdl-ios-xcode
changeset 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 | eb5e61b72da3 |
children | d22372343744 |
files | src/audio/SDL_audio.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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);