Add explanatory comment

This commit is contained in:
Vanilagy
2025-01-12 16:57:31 +01:00
parent 9c501808b1
commit 45474764ca
+1
View File
@@ -1030,6 +1030,7 @@ class PcmAudioDecoderWrapper extends DecoderWrapper<EncodedAudioSample, AudioDat
const preciseDuration = numberOfFrames / this.decoderConfig.sampleRate;
if (this.currentTimestamp === null || Math.abs(sample.timestamp - this.currentTimestamp) >= preciseDuration) {
// We need to sync with the sample timestamp again
this.currentTimestamp = sample.timestamp;
}