rename music_duration_int to music_internal_duration() for consistency
authorOzkan Sezer
Fri, 20 Dec 2019 11:50:05 +0300
changeset 1100ba8b8227a7bd
parent 1099 a3c637d1a698
child 1101 2e69576079bd
rename music_duration_int to music_internal_duration() for consistency
src/music.c
     1.1 --- a/src/music.c	Thu Dec 19 18:55:02 2019 +0300
     1.2 +++ b/src/music.c	Fri Dec 20 11:50:05 2019 +0300
     1.3 @@ -795,7 +795,7 @@
     1.4      return(retval);
     1.5  }
     1.6  
     1.7 -static double music_duration_int(Mix_Music *music)
     1.8 +static double music_internal_duration(Mix_Music *music)
     1.9  {
    1.10      if (music->interface->Duration) {
    1.11          return music->interface->Duration(music->context);
    1.12 @@ -804,7 +804,6 @@
    1.13          return -1;
    1.14      }
    1.15  }
    1.16 -
    1.17  double Mix_MusicDuration(Mix_Music *music)
    1.18  {
    1.19      double retval;
    1.20 @@ -812,9 +811,9 @@
    1.21      Mix_LockAudio();
    1.22  
    1.23      if (music) {
    1.24 -        retval = music_duration_int(music);
    1.25 +        retval = music_internal_duration(music);
    1.26      } else if (music_playing) {
    1.27 -        retval = music_duration_int(music_playing);
    1.28 +        retval = music_internal_duration(music_playing);
    1.29      } else {
    1.30          Mix_SetError("music is NULL and no playing music");
    1.31          retval = -1;