Browse Source

Fix to prevent UpdateMusicStream to run without music playing

pull/5046/head
Maicon Santana 1 week ago
parent
commit
3320a2c837
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/raudio.c

+ 1
- 0
src/raudio.c View File

@ -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);

Loading…
Cancel
Save