Skip to content

Commit

Permalink
fix jack clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosprint committed May 28, 2024
1 parent 59a399f commit 4ba21ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn draw_rec_waveform(
Ok(())
}

pub fn record_audio(output: String, device: &str, _jack: bool) -> anyhow::Result<()> {
pub fn record_audio(output: String, device: &str, jack: bool) -> anyhow::Result<()> {
let output = format!("{}.wav", output.replace(".wav", ""));
let (ui_tx, ui_rx) = unbounded();
let (writer_tx, writer_rx) = unbounded();
Expand Down Expand Up @@ -173,6 +173,10 @@ pub fn record_audio(output: String, device: &str, _jack: bool) -> anyhow::Result
)),
not(feature = "jack")
))]
assert!(
!jack,
"jack is only supported on linux, dragonfly, freebsd, and netbsd"
);
let host = cpal::default_host();

let device = if device == "default" {
Expand Down

0 comments on commit 4ba21ff

Please sign in to comment.