web: Remove now unused `getAudioOutputTimestamp`
This commit is contained in:
parent
c88d363263
commit
0721ebb699
|
@ -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`.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue