diff SDL_sound.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 6d328f00c20d
children 137c0b00ea4c
line wrap: on
line diff
--- a/SDL_sound.c	Sat May 08 22:06:14 2004 +0000
+++ b/SDL_sound.c	Wed May 12 02:15:00 2004 +0000
@@ -901,5 +901,12 @@
 } /* Sound_Rewind */
 
 
+Sint32 Sound_GetDuration(Sound_Sample *sample)
+{
+    BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, -1);
+    Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
+    return(internal->total_time);
+} /* Sound_GetDuration */
+
 /* end of SDL_sound.c ... */