mirror of https://github.com/mgba-emu/mgba.git
Remove audio processing loop now that there is an event processing loop
This commit is contained in:
parent
83e16d56c0
commit
548793e551
|
@ -65,7 +65,7 @@ void GBAAudioDeinit(struct GBAAudio* audio) {
|
|||
int32_t GBAAudioProcessEvents(struct GBAAudio* audio, int32_t cycles) {
|
||||
audio->nextEvent -= cycles;
|
||||
audio->eventDiff += cycles;
|
||||
while (audio->nextEvent <= 0) {
|
||||
if (audio->nextEvent <= 0) {
|
||||
audio->nextEvent = INT_MAX;
|
||||
if (audio->enable) {
|
||||
if (audio->playingCh1 && !audio->ch1.envelope.dead) {
|
||||
|
|
Loading…
Reference in New Issue