diff --git a/Cargo.toml b/Cargo.toml index 848cdd9..64faf59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,11 +27,11 @@ name = "recording" required-features = ["derive_serde"] [dev-dependencies] +anyhow = "1" crossbeam-channel = "0.5" ctrlc = { version = "3", features = ["termination"] } -failure = "0.1" -hound = "3.4" -json5 = "0.3" +hound = "3" +json5 = "0.4" portaudio = "0.7" regex = "1" serde = { version = "1", features = ["derive"]} diff --git a/examples/karaoke.rs b/examples/karaoke.rs index b02262c..3f59431 100644 --- a/examples/karaoke.rs +++ b/examples/karaoke.rs @@ -1,8 +1,8 @@ // This example loops the microphone input back to the speakers, while applying echo cancellation, // creating an experience similar to Karaoke microphones. It uses PortAudio as an interface to the // underlying audio devices. +use anyhow::Error; use ctrlc; -use failure::Error; use portaudio; use std::{ sync::{ diff --git a/examples/recording.rs b/examples/recording.rs index 579e695..f646754 100644 --- a/examples/recording.rs +++ b/examples/recording.rs @@ -21,7 +21,7 @@ /// $ cargo run --example recording --features bundled --features derive_serde -- --config-file \ /// examples/recording-configs/record-pipeline.json5 /// ``` -use failure::{format_err, Error}; +use anyhow::{anyhow, Error}; use hound::{WavIntoSamples, WavReader, WavWriter}; use regex::Regex; use serde::{Deserialize, Serialize}; @@ -96,7 +96,7 @@ fn match_device( return Ok(device.0); } } - Err(format_err!("Audio device matching \"{}\" not found.", device_name)) + Err(anyhow!("Audio device matching \"{}\" not found.", device_name)) } fn create_stream_settings( diff --git a/webrtc-audio-processing-sys/build.rs b/webrtc-audio-processing-sys/build.rs index 571e17a..466b86f 100644 --- a/webrtc-audio-processing-sys/build.rs +++ b/webrtc-audio-processing-sys/build.rs @@ -111,10 +111,12 @@ fn main() -> Result<(), Error> { } if cfg!(target_os = "macos") { + // TODO: Remove after confirming this is not necessary. //println!("cargo:rustc-link-lib=dylib=c++"); - //println!("cargo:rustc-link-lib=framework=CoreFoundation"); + println!("cargo:rustc-link-lib=framework=CoreFoundation"); } else { - println!("cargo:rustc-link-lib=dylib=stdc++"); + // TODO: Remove after confirming this is not necessary. + //println!("cargo:rustc-link-lib=dylib=stdc++"); } cc::Build::new()