Browse Source
Merge pull request #5046 from maiconpintoabreu/updatestream-music
[raudio] Prevent UpdateMusicStream to run without music playing
pull/5047/head
Ray
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
src/raudio.c
|
|
@ -1871,6 +1871,7 @@ void SeekMusicStream(Music music, float position) |
|
|
|
void UpdateMusicStream(Music music) |
|
|
|
{ |
|
|
|
if (music.stream.buffer == NULL) return; |
|
|
|
if (!music.stream.buffer->playing) return; |
|
|
|
|
|
|
|
ma_mutex_lock(&AUDIO.System.lock); |
|
|
|
|
|
|
|