From 34e4b6177aee170ab36ba9a91185cab1d51266ff Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 11 May 2017 16:07:14 +0200 Subject: [PATCH] soniton should report if sample is signed --- src/frame.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frame.rs b/src/frame.rs index 7b2b5c7..6431bc2 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -9,12 +9,13 @@ pub struct NASoniton { packed: bool, planar: bool, float: bool, + signed: bool, } #[allow(dead_code)] -pub const SND_U8_FORMAT: NASoniton = NASoniton { bits: 8, is_be: false, packed: false, planar: false, float: false }; +pub const SND_U8_FORMAT: NASoniton = NASoniton { bits: 8, is_be: false, packed: false, planar: false, float: false, signed: false }; #[allow(dead_code)] -pub const SND_S16_FORMAT: NASoniton = NASoniton { bits: 16, is_be: false, packed: false, planar: false, float: false }; +pub const SND_S16_FORMAT: NASoniton = NASoniton { bits: 16, is_be: false, packed: false, planar: false, float: false, signed: true }; #[allow(dead_code)] #[derive(Clone,Copy)] -- 2.39.5