diff decoders/au.c @ 477:3e705c9180e5

Fixed binary compatibility, added Sound_GetDuration().
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 12 May 2004 02:15:00 +0000
parents c66080364dff
children 8a814bbbedfa
line wrap: on
line diff
--- a/decoders/au.c	Sat May 08 22:06:14 2004 +0000
+++ b/decoders/au.c	Wed May 12 02:15:00 2004 +0000
@@ -246,10 +246,10 @@
 
     bytes_per_second = ( ( dec->encoding == AU_ENC_LINEAR_16 ) ? 2 : 1 )
         * sample->actual.rate * sample->actual.channels ;
-    sample->total_time = ((dec->remaining == -1) ? (-1) :
-			  ( ( dec->remaining / bytes_per_second ) * 1000 ) +
-			  ( ( dec->remaining % bytes_per_second ) * 1000 /
-                          bytes_per_second ) );
+    internal->total_time = ((dec->remaining == -1) ? (-1) :
+                            ( ( dec->remaining / bytes_per_second ) * 1000 ) +
+                            ( ( dec->remaining % bytes_per_second ) * 1000 /
+                              bytes_per_second ) );
 
     sample->flags = SOUND_SAMPLEFLAG_CANSEEK;
     dec->total = dec->remaining;