From 23a08a483e17d8c8e8b4774527027bb14ec6b933 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 20 May 2021 19:27:04 +0200 Subject: [PATCH] WARNING: RENAMED: IsMusicPlaying() -> IsMusicStreamPlaying() --- src/raudio.c | 6 +++--- src/raudio.h | 2 +- src/raylib.h | 2 +- 3 files changed, 5 insertions(+), 5 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); } diff --git a/src/raudio.h b/src/raudio.h index e37f4b27..a38c6957 100644 --- a/src/raudio.h +++ b/src/raudio.h @@ -169,7 +169,7 @@ Music LoadMusicStream(const char *fileName); // Load music st Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int dataSize); // Load music stream from data void UnloadMusicStream(Music music); // Unload music stream void PlayMusicStream(Music music); // Start music playing -bool IsMusicPlaying(Music music); // Check if music is playing +bool IsMusicStreamPlaying(Music music); // Check if music is playing void UpdateMusicStream(Music music); // Updates buffers for music streaming void StopMusicStream(Music music); // Stop music playing void PauseMusicStream(Music music); // Pause music playing diff --git a/src/raylib.h b/src/raylib.h index 916ea372..b0b6b9f6 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1502,7 +1502,7 @@ RLAPI Music LoadMusicStream(const char *fileName); // Load mu RLAPI Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int dataSize); // Load music stream from data RLAPI void UnloadMusicStream(Music music); // Unload music stream RLAPI void PlayMusicStream(Music music); // Start music playing -RLAPI bool IsMusicPlaying(Music music); // Check if music is playing +RLAPI bool IsMusicStreamPlaying(Music music); // Check if music is playing RLAPI void UpdateMusicStream(Music music); // Updates buffers for music streaming RLAPI void StopMusicStream(Music music); // Stop music playing RLAPI void PauseMusicStream(Music music); // Pause music playing