remove extra printlns
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
1739faf1f7
commit
10f0ac0576
|
@ -8,12 +8,13 @@ use cpal::traits::StreamTrait;
|
|||
use cpal::traits::{DeviceTrait, HostTrait};
|
||||
use cpal::Device;
|
||||
use cpal::InputCallbackInfo;
|
||||
use log::debug;
|
||||
// use cpal::OutputCallbackInfo;
|
||||
use tauri::Window;
|
||||
|
||||
pub async fn monitor(window: Window, threshold: Arc<Mutex<f32>>, level: Arc<Mutex<f32>>) {
|
||||
let device = initialize().expect("Unable to init audio");
|
||||
println!("Using device {}", device.name().unwrap());
|
||||
debug!("Using device {}", device.name().unwrap());
|
||||
let config = device.default_input_config().unwrap();
|
||||
let stream = device
|
||||
.build_input_stream(
|
||||
|
@ -38,7 +39,6 @@ pub async fn monitor(window: Window, threshold: Arc<Mutex<f32>>, level: Arc<Mute
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
println!("Start stream");
|
||||
stream.play().expect("Error creating input stream");
|
||||
|
||||
// The stream will end if it goes out of scope, so just dwell here
|
||||
|
|
Loading…
Reference in New Issue