Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

1.3 branch version of revision 2878.

Fixes Bugzilla #298.
  • Loading branch information
icculus committed Oct 27, 2006
1 parent 11ef95a commit 30d675e85b0ad42318dc7ec9d047a696b8a26490
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/audio/SDL_audio.c
@@ -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);

0 comments on commit 30d675e

Please sign in to comment.