changeset 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 976bc19f8f6b
children 892623cfee40
files src/audio/SDL_audio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);