1.3 branch version of revision 2878.

Fixes Bugzilla #298.
This commit is contained in:
Ryan C. Gordon 2006-10-27 20:19:48 +00:00
parent 4b82340a21
commit 0dccc26b00

View File

@ -688,7 +688,9 @@ open_audio_device(const char *devname, int iscapture,
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);