f32 instead of i16

This commit is contained in:
2025-07-22 02:51:37 +02:00
parent 43f8d38cb2
commit f2b7e6e689
3 changed files with 180 additions and 97 deletions

View File

@@ -127,7 +127,7 @@ impl Speaker {
pub fn build_stream<F>(&self, callback: F) -> Stream
where
F: FnMut(&mut [i16], &cpal::OutputCallbackInfo) + Send + 'static,
F: FnMut(&mut [f32], &cpal::OutputCallbackInfo) + Send + 'static,
{
let config = self.get_stream_config();