Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

clippy

Richie McIlroy1a09a83383d5
diff --git a/crates/editor/src/audio.rs b/crates/editor/src/audio.rs
index 6eb92b644..d0b8687aa 100644
--- a/crates/editor/src/audio.rs
+++ b/crates/editor/src/audio.rs
@@ -294,6 +294,7 @@ impl<T: FromSampleBytes> AudioPlaybackBuffer<T> {
self.frame_buffer.set_playhead(playhead, project);
}
+ #[cfg(target_os = "windows")]
pub fn set_playhead_smooth(&mut self, playhead: f64, project: &ProjectConfiguration) {
self.resampled_buffer.clear();
self.frame_buffer.set_playhead(playhead, project);
diff --git a/crates/editor/src/playback.rs b/crates/editor/src/playback.rs
index af721940f..9cb7b405c 100644
--- a/crates/editor/src/playback.rs
+++ b/crates/editor/src/playback.rs
@@ -343,6 +343,7 @@ impl Playback {
project: self.project.clone(),
fps,
playhead_rx: audio_playhead_rx,
+ #[cfg(target_os = "windows")]
duration_secs: duration,
}
.spawn();
@@ -694,6 +695,7 @@ struct AudioPlayback {
project: watch::Receiver<ProjectConfiguration>,
fps: u32,
playhead_rx: watch::Receiver<f64>,
+ #[cfg(target_os = "windows")]
duration_secs: f64,
}