Skip to content
Permalink
Browse files

rename music_duration_int to music_internal_duration() for consistency

  • Loading branch information
sezero committed Dec 20, 2019
1 parent e819489 commit 488c51beca5c98a73087743ed88550871c0b9fd9
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/music.c
@@ -795,7 +795,7 @@ int Mix_SetMusicPosition(double position)
return(retval);
}

static double music_duration_int(Mix_Music *music)
static double music_internal_duration(Mix_Music *music)
{
if (music->interface->Duration) {
return music->interface->Duration(music->context);
@@ -804,17 +804,16 @@ static double music_duration_int(Mix_Music *music)
return -1;
}
}

double Mix_MusicDuration(Mix_Music *music)
{
double retval;

Mix_LockAudio();

if (music) {
retval = music_duration_int(music);
retval = music_internal_duration(music);
} else if (music_playing) {
retval = music_duration_int(music_playing);
retval = music_internal_duration(music_playing);
} else {
Mix_SetError("music is NULL and no playing music");
retval = -1;

0 comments on commit 488c51b

Please sign in to comment.