changeset 369:d76a34316c84

Fixed to handle stereo AIFF files.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 24 Jun 2002 23:12:55 +0000
parents 84d6c604eaa9
children 12023d47b716
files decoders/aiff.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/decoders/aiff.c	Sat Jun 22 23:19:41 2002 +0000
+++ b/decoders/aiff.c	Mon Jun 24 23:12:55 2002 +0000
@@ -482,12 +482,12 @@
     if (c.sampleSize <= 8)
     {
         sample->actual.format = AUDIO_S8;
-        bytes_per_sample = 1;
+        bytes_per_sample = c.numChannels;
     } /* if */
     else if (c.sampleSize <= 16)
     {
         sample->actual.format = AUDIO_S16MSB;
-        bytes_per_sample = 2;
+        bytes_per_sample = 2 * c.numChannels;
     } /* if */
     else
     {