remove extra printlns
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
AnActualEmerald 2022-09-14 02:14:06 -04:00
parent 1739faf1f7
commit 10f0ac0576
Signed by: emerald
GPG Key ID: CC76D6B296CAC8B0
1 changed files with 2 additions and 2 deletions

View File

@ -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