1.3 branch version of revision 2878.

Fixes Bugzilla #298.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402201
This commit is contained in:
Ryan C. Gordon 2006-10-27 20:19:48 +00:00
parent ba64fd8340
commit 3c592629bd

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);