fixed api and stopping delay

This commit is contained in:
Marco Mooren
2026-05-27 12:55:08 +02:00
parent 7b8d78ddaf
commit 3def9e0aac
2 changed files with 3 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ export class Player {
// anyway, so the ramp would just be cancelled a quantum later.
this._outputMuted = true;
const gain = this.audio[GAIN_KEY];
const ctx = this.audio[CTX_KEY];
const ctx = this.audio[CTX_KEY];
if (gain && ctx) {
try {
gain.gain.cancelScheduledValues(ctx.currentTime);