changeset 5049:e080a8d5019f

fixed long-standing issue with stereo IMA4 decoder
author melanson
date Tue, 12 Mar 2002 01:32:46 +0000
parents 2f53b53385e2
children b6d83ac1e3e0
files dec_audio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dec_audio.c	Mon Mar 11 20:13:45 2002 +0000
+++ b/dec_audio.c	Tue Mar 12 01:32:46 2002 +0000
@@ -418,7 +418,7 @@
 case AFM_IMAADPCM:
   sh_audio->audio_out_minsize=4096;
   sh_audio->ds->ss_div=IMA_ADPCM_SAMPLES_PER_BLOCK;
-  sh_audio->ds->ss_mul=IMA_ADPCM_BLOCK_SIZE;
+  sh_audio->ds->ss_mul=IMA_ADPCM_BLOCK_SIZE * sh_audio->wf->nChannels;
   break;
 case AFM_MSADPCM:
   sh_audio->audio_out_minsize=sh_audio->wf->nBlockAlign * 8;