Fix ogg edge cases

This commit is contained in:
Ellen Poe
2021-12-11 22:06:36 -08:00
parent 690fefe43e
commit afd2bbaa5f
3 changed files with 23 additions and 27 deletions

View File

@ -38,7 +38,9 @@
#include "core/io/file_access.h"
int AudioStreamPlaybackMP3::_mix_internal(AudioFrame *p_buffer, int p_frames) {
ERR_FAIL_COND_V(!active, 0);
if (!active) {
return 0;
}
int todo = p_frames;