diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-07-30 20:59:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-30 20:59:45 +0200 |
commit | 93c226f7a38fc4976e93a5fb693ff22edede0738 (patch) | |
tree | c38e6ce87f64090b24910ab28e1e599d4e3a2de9 /modules | |
parent | 263452ee91c7d76f3a2b1503ce8fbd0d35bbb6e4 (diff) | |
parent | 207f596e69bcf822fa83f93251a947a85b77505d (diff) |
Merge pull request #9964 from supagu/audio_fix
Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in in…
Diffstat (limited to 'modules')
-rw-r--r-- | modules/stb_vorbis/audio_stream_ogg_vorbis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp index c645a55703..7b8b2abebb 100644 --- a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp +++ b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp @@ -39,7 +39,7 @@ void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame *p_buffer, int p_fra int todo = p_frames; - while (todo) { + while (todo && active) { int mixed = stb_vorbis_get_samples_float_interleaved(ogg_stream, 2, (float *)p_buffer, todo * 2); todo -= mixed; |