diff decoders/voc.c @ 480:00b61987b555

Fixed logic bug in .voc decoder that caused crash at open time.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 12 Nov 2004 08:21:04 +0000
parents 3e705c9180e5
children 2df1f5c62d38
line wrap: on
line diff
--- a/decoders/voc.c	Fri Nov 12 08:04:00 2004 +0000
+++ b/decoders/voc.c	Fri Nov 12 08:21:04 2004 +0000
@@ -231,6 +231,7 @@
 
                     v->rate = uc;
                     sample->actual.rate = 1000000.0/(256 - v->rate);
+                    sample->actual.channels = 1;
                     v->channels = 1;
                 } /* if */