Merge pull request #9964 from supagu/audio_fix

Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in in…
This commit is contained in:
Rémi Verschelde 2017-07-30 20:59:45 +02:00 committed by GitHub
commit 93c226f7a3

View file

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