mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +02:00
Remove setTimestamp for AudioSample, add override options to its clone method
This commit is contained in:
+2
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user