]> git.nihav.org Git - nihav.git/commitdiff
soniton should report if sample is signed
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 11 May 2017 14:07:14 +0000 (16:07 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 11 May 2017 14:07:14 +0000 (16:07 +0200)
src/frame.rs

index 7b2b5c757d5fc787c922d5852783bc1a82429bd5..6431bc2e944cf5eb13eca58f5a9d5b2bead3f9a0 100644 (file)
@@ -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)]