comparison 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
comparison
equal deleted inserted replaced
475:f0b8865577db 477:3e705c9180e5
899 899
900 return(1); 900 return(1);
901 } /* Sound_Rewind */ 901 } /* Sound_Rewind */
902 902
903 903
904 Sint32 Sound_GetDuration(Sound_Sample *sample)
905 {
906 BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, -1);
907 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
908 return(internal->total_time);
909 } /* Sound_GetDuration */
910
904 /* end of SDL_sound.c ... */ 911 /* end of SDL_sound.c ... */
905 912