From 49fde92172ebb1109034d067e08dfac4db140c65 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 13 Oct 2018 14:22:00 +0200 Subject: [PATCH] add planar S16 formaton --- src/formats.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/formats.rs b/src/formats.rs index b72cd1a..74c9dcd 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -20,6 +20,7 @@ pub const SONITON_FLAG_SIGNED :u32 = 0x10; 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_S16P_FORMAT: NASoniton = NASoniton { bits: 16, be: false, packed: false, planar: true, float: false, signed: true }; pub const SND_F32P_FORMAT: NASoniton = NASoniton { bits: 32, be: false, packed: false, planar: true, float: true, signed: true }; impl NASoniton { -- 2.39.5