Document API changes

This commit is contained in:
Vanilagy
2025-07-27 12:19:44 +02:00
parent d38ad22559
commit 50fe065852
3 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -1065,8 +1065,8 @@ export class AudioSample {
}
/**
* Creates AudioSamples from an AudioBuffer, starting at the given timestamp. Typically creates exactly one sample,
* but may create multiple if the AudioBuffer is exceedingly large.
* Creates AudioSamples from an AudioBuffer, starting at the given timestamp in seconds. Typically creates exactly
* one sample, but may create multiple if the AudioBuffer is exceedingly large.
*/
static fromAudioBuffer(audioBuffer: AudioBuffer, timestamp: number) {
if (!(audioBuffer instanceof AudioBuffer)) {