diff src/audio/SDL_audio.c @ 4205:12da7861173e SDL-1.2

Use correct value when calculating audio conversion length. Fixes Bugzilla #477.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 21 Sep 2009 06:18:52 +0000
parents a1b03ba2fcd0
children 5007e6a66814
line wrap: on
line diff
--- a/src/audio/SDL_audio.c	Mon Sep 21 06:08:23 2009 +0000
+++ b/src/audio/SDL_audio.c	Mon Sep 21 06:18:52 2009 +0000
@@ -532,7 +532,7 @@
 			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);