diff options
| author | Ray <[email protected]> | 2021-05-20 19:27:04 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-20 19:27:04 +0200 |
| commit | 23a08a483e17d8c8e8b4774527027bb14ec6b933 (patch) | |
| tree | 7e011f2928b16d85afdb9c5dcae20f928f446f3a /src/raudio.c | |
| parent | f33cec64aac2cae70bda939a988c8dc32e491c99 (diff) | |
| download | raylib-23a08a483e17d8c8e8b4774527027bb14ec6b933.tar.gz raylib-23a08a483e17d8c8e8b4774527027bb14ec6b933.zip | |
WARNING: RENAMED: IsMusicPlaying() -> IsMusicStreamPlaying()
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raudio.c b/src/raudio.c index 5db2407a..639d6cd5 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1540,7 +1540,7 @@ void PlayMusicStream(Music music) // For music streams, we need to make sure we maintain the frame cursor position // This is a hack for this section of code in UpdateMusicStream() // NOTE: In case window is minimized, music stream is stopped, just make sure to - // play again on window restore: if (IsMusicPlaying(music)) PlayMusicStream(music); + // play again on window restore: if (IsMusicStreamPlaying(music)) PlayMusicStream(music); ma_uint32 frameCursorPos = music.stream.buffer->frameCursorPos; PlayAudioStream(music.stream); // WARNING: This resets the cursor position. music.stream.buffer->frameCursorPos = frameCursorPos; @@ -1714,12 +1714,12 @@ void UpdateMusicStream(Music music) { // NOTE: In case window is minimized, music stream is stopped, // just make sure to play again on window restore - if (IsMusicPlaying(music)) PlayMusicStream(music); + if (IsMusicStreamPlaying(music)) PlayMusicStream(music); } } // Check if any music is playing -bool IsMusicPlaying(Music music) +bool IsMusicStreamPlaying(Music music) { return IsAudioStreamPlaying(music.stream); } |
