f32 instead of i16
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user