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:
parent
ba64fd8340
commit
3c592629bd
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue