diff --git a/frontends/web/ts/gb.ts b/frontends/web/ts/gb.ts index 277ab1566c005d20f38e80415cba1a617f491555..da83b95c28962581bdbedb72c0a604fd7b8c2978 100644 --- a/frontends/web/ts/gb.ts +++ b/frontends/web/ts/gb.ts @@ -346,7 +346,7 @@ export class GameboyEmulator extends EmulatorBase implements Emulator { // some sync, this is required because of time hogging const audioCurrentTime = this.audioContext.currentTime; if ( - this.nextPlayTime > audioCurrentTime + 0.05 || + this.nextPlayTime > audioCurrentTime + 0.25 || this.nextPlayTime < audioCurrentTime ) { // @TODO: this is tricky as it cancels most of the code @@ -355,7 +355,7 @@ export class GameboyEmulator extends EmulatorBase implements Emulator { chunk.source.stop(); }); this.audioChunks = []; - this.nextPlayTime = audioCurrentTime; + this.nextPlayTime = audioCurrentTime + 0.1; } const source = this.audioContext.createBufferSource();