Skip to content

Commit

Permalink
Deploying to gh-pages from @ f827e50 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Jan 14, 2025
1 parent c5ea3fc commit 5e03527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/lib/web_audio_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export class WebAudioController {
// hardware buffering, etc. This starts out negative, because it takes some
// time to buffer, and crosses zero as the first audio sample is produced
// by the audio output device.
let totalOutputLatency =
this.audioContext.outputLatency + this.audioContext.baseLatency;
let outputLatency = this.audioContext.outputLatency ? this.audioContext.outputLatency : 0;
let totalOutputLatency = outputLatency + this.audioContext.baseLatency;

return Math.max(this.audioContext.currentTime - totalOutputLatency, 0.0);
}
Expand Down

0 comments on commit 5e03527

Please sign in to comment.