Skip to content
Permalink
Browse files

Use correct value when calculating audio conversion length.

  Fixes Bugzilla #477.
  • Loading branch information
icculus committed Sep 21, 2009
1 parent 1751e87 commit 821219e289c7e5ed3db7f69f5f4151ca0f2b130e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/audio/SDL_audio.c
@@ -532,7 +532,7 @@ int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
return(-1);
}
if ( audio->convert.needed ) {
audio->convert.len = (int) ( ((double) desired->size) /
audio->convert.len = (int) ( ((double) audio->spec.size) /
audio->convert.len_ratio );
audio->convert.buf =(Uint8 *)SDL_AllocAudioMem(
audio->convert.len*audio->convert.len_mult);

0 comments on commit 821219e

Please sign in to comment.