Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
1.3 branch version of revision 2878.
Fixes Bugzilla #298.
  • Loading branch information
icculus committed Oct 27, 2006
1 parent 11ef95a commit 30d675e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -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);
Expand Down

0 comments on commit 30d675e

Please sign in to comment.