formats: F32 -> F32P
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 15 Jun 2017 10:49:36 +0000 (12:49 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 15 Jun 2017 10:49:36 +0000 (12:49 +0200)
src/formats.rs

index 180e9800433bfc297bd2e2015c3e6d223f17a52a..29b54b02d0a2865e37b745a59f63fda0c6f9ce39 100644 (file)
@@ -23,7 +23,7 @@ bitflags! {
 
 pub const SND_U8_FORMAT: NASoniton = NASoniton { bits: 8, be: false, packed: false, planar: false, float: false, signed: false };
 pub const SND_S16_FORMAT: NASoniton = NASoniton { bits: 16, be: false, packed: false, planar: false, float: false, signed: true };
-pub const SND_F32_FORMAT: NASoniton = NASoniton { bits: 32, be: false, packed: false, planar: false, float: true, signed: true };
+pub const SND_F32P_FORMAT: NASoniton = NASoniton { bits: 32, be: false, packed: false, planar: true, float: true, signed: true };
 
 impl NASoniton {
     pub fn new(bits: u8, flags: SonitonFlags) -> Self {
@@ -414,7 +414,7 @@ mod test {
     fn test_fmt() {
         println!("{}", SND_S16_FORMAT);
         println!("{}", SND_U8_FORMAT);
-        println!("{}", SND_F32_FORMAT);
+        println!("{}", SND_F32P_FORMAT);
         println!("formaton yuv- {}", YUV420_FORMAT);
         println!("formaton pal- {}", PAL8_FORMAT);
         println!("formaton rgb565- {}", RGB565_FORMAT);