diff decoders/voc.c @ 481:3f03af31e246 stable-1.0

Backported .voc fix.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 12 Nov 2004 08:26:11 +0000
parents cd46c97e58bc
children 50bb9a6cebfe
line wrap: on
line diff
--- a/decoders/voc.c	Sat May 08 22:10:44 2004 +0000
+++ b/decoders/voc.c	Fri Nov 12 08:26:11 2004 +0000
@@ -229,8 +229,9 @@
                         BAIL_MACRO("VOC sample rate codes differ", 0);
 
                     v->rate = uc;
+                    v->channels = 1;
                     sample->actual.rate = 1000000.0/(256 - v->rate);
-                    v->channels = 1;
+                    sample->actual.channels = 1;
                 } /* if */
 
                 if (!voc_readbytes(src, v, &uc, sizeof (uc)))