log supported configs

This commit is contained in:
2025-12-04 21:07:49 -07:00
parent 55412f5778
commit f3ffcf6d89
+2
View File
@@ -68,6 +68,7 @@ impl AudioSystem {
&mut self, &mut self,
mut each: impl FnMut(Vec<u8>) + Send + 'static, mut each: impl FnMut(Vec<u8>) + Send + 'static,
) -> Result<(), Error> { ) -> Result<(), Error> {
info!("creating recording on {:?} with {:#?}", self.input.name()?, self.input.supported_input_configs()?.collect::<Vec<_>>());
let mut encoder = let mut encoder =
opus::Encoder::new(SAMPLE_RATE, opus::Channels::Mono, opus::Application::Voip)?; opus::Encoder::new(SAMPLE_RATE, opus::Channels::Mono, opus::Application::Voip)?;
let mut current_processor = AudioProcessor::new_plain(); let mut current_processor = AudioProcessor::new_plain();
@@ -116,6 +117,7 @@ impl AudioSystem {
} }
pub fn create_player(&mut self) -> Result<AudioPlayer, Error> { pub fn create_player(&mut self) -> Result<AudioPlayer, Error> {
info!("creating player on {:?} with {:#?}", self.output.name()?, self.output.supported_output_configs()?.collect::<Vec<_>>());
let buffer = Arc::new(Mutex::new(dasp_ring_buffer::Bounded::from_raw_parts( let buffer = Arc::new(Mutex::new(dasp_ring_buffer::Bounded::from_raw_parts(
0, 0,
0, 0,