Remove setTimestamp for AudioSample, add override options to its clone method

This commit is contained in:
Vanilagy
2025-12-28 18:11:04 +01:00
parent eed49ee1d0
commit 0530c91ecd
3 changed files with 12 additions and 14 deletions
+2 -1
View File
@@ -2003,7 +2003,8 @@ export class MediaStreamAudioTrackSource extends AudioSource {
return;
}
audioSample.setTimestamp(currentTimestamp + this._pauseOffset);
// @ts-expect-error Readonly
audioSample.timestamp = currentTimestamp + this._pauseOffset;
void this._encoder.add(audioSample, true)
.catch((error) => {