Commit 3c592629 authored by Ryan C. Gordon's avatar Ryan C. Gordon

1.3 branch version of revision 2878.

Fixes Bugzilla #298.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402201
parent ba64fd83
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment