diff decoders/aiff.c @ 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 8ba541e81c1e
children cbb15ecf423a
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
     {