Skip to content

Commit 4ba21ff

Browse files
committed
fix jack clippy
1 parent 59a399f commit 4ba21ff

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/record.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn draw_rec_waveform(
137137
Ok(())
138138
}
139139

140-
pub fn record_audio(output: String, device: &str, _jack: bool) -> anyhow::Result<()> {
140+
pub fn record_audio(output: String, device: &str, jack: bool) -> anyhow::Result<()> {
141141
let output = format!("{}.wav", output.replace(".wav", ""));
142142
let (ui_tx, ui_rx) = unbounded();
143143
let (writer_tx, writer_rx) = unbounded();
@@ -173,6 +173,10 @@ pub fn record_audio(output: String, device: &str, _jack: bool) -> anyhow::Result
173173
)),
174174
not(feature = "jack")
175175
))]
176+
assert!(
177+
!jack,
178+
"jack is only supported on linux, dragonfly, freebsd, and netbsd"
179+
);
176180
let host = cpal::default_host();
177181

178182
let device = if device == "default" {

0 commit comments

Comments
 (0)