Mercurial > SDL_sound_CoreAudio
comparison SDL_sound.c @ 553:5ec7f4e5e20b
Fixed compilation on pre-C99 compilers (gcc2, msvc, etc).
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 11 Sep 2008 05:29:12 -0400 |
parents | 2e8907ff98e9 |
children | e9a6286d9243 |
comparison
equal
deleted
inserted
replaced
552:2e8907ff98e9 | 553:5ec7f4e5e20b |
---|---|
926 } /* Sound_Rewind */ | 926 } /* Sound_Rewind */ |
927 | 927 |
928 | 928 |
929 Sint32 Sound_GetDuration(Sound_Sample *sample) | 929 Sint32 Sound_GetDuration(Sound_Sample *sample) |
930 { | 930 { |
931 Sound_SampleInternal *internal; | |
931 BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, -1); | 932 BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, -1); |
932 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | 933 internal = (Sound_SampleInternal *) sample->opaque; |
933 return(internal->total_time); | 934 return(internal->total_time); |
934 } /* Sound_GetDuration */ | 935 } /* Sound_GetDuration */ |
935 | 936 |
936 /* end of SDL_sound.c ... */ | 937 /* end of SDL_sound.c ... */ |
937 | 938 |