From 078769dbbdd2379723c55c1c9d99ced3c064e9be Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 1 Sep 2015 15:58:22 +0200 Subject: [PATCH] Enable 32bits samples with WASAPI --- src/wasapi/voice.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wasapi/voice.rs b/src/wasapi/voice.rs index d7fcd38..1cd3154 100644 --- a/src/wasapi/voice.rs +++ b/src/wasapi/voice.rs @@ -188,6 +188,7 @@ impl Voice { pub fn get_samples_format(&self) -> ::SampleFormat { match self.bits_per_sample { 16 => ::SampleFormat::I16, + 32 => ::SampleFormat::F32, _ => panic!("{}-bit format not yet supported", self.bits_per_sample), } }