web: Remove now unused `getAudioOutputTimestamp`

This commit is contained in:
TÖRÖK Attila 2024-07-18 04:26:52 +02:00 committed by Nathan Adams
parent c88d363263
commit 0721ebb699
1 changed files with 0 additions and 11 deletions

View File

@ -5,17 +5,6 @@
* @internal * @internal
*/ */
/**
* Returns the estimated output timestamp for the audio context.
* This is necessary because web-sys does not export `AudioContext.baseLatency`.
*
* @internal
*/
export function getAudioOutputTimestamp(context: AudioContext): number {
// TODO: Ideally we'd use `context.getOutputTimestamp`, but this is broken as of Safari 15.4.
return context.currentTime - context.baseLatency;
}
/** /**
* Copies interleaved stereo audio data into an `AudioBuffer`. * Copies interleaved stereo audio data into an `AudioBuffer`.
* *