Skip to content

Commit 28eabb4

Browse files
committed
Fix audio frame duration calculation in mixer
1 parent ac61470 commit 28eabb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/recording/src/sources/audio_mixer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl AudioMixer {
322322

323323
source.buffer_last = Some((
324324
timestamp,
325-
Duration::from_secs_f64(frame.samples() as f64 / frame.rate() as f64),
325+
Duration::from_secs_f64(frame.samples() as f64 / rate as f64),
326326
));
327327
source.buffer.push_back(AudioFrame::new(frame, timestamp));
328328
}

0 commit comments

Comments
 (0)