From 8c560c72c54765a6168694b0e22c40e505bee68b Mon Sep 17 00:00:00 2001 From: Yury Date: Sun, 1 Dec 2024 00:22:08 +0300 Subject: [PATCH] add Apple Positional Audio Codec (APAC) and some doc aliases --- cidre/src/cat/audio/base_types.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/cidre/src/cat/audio/base_types.rs b/cidre/src/cat/audio/base_types.rs index 9309e292..19928ad1 100644 --- a/cidre/src/cat/audio/base_types.rs +++ b/cidre/src/cat/audio/base_types.rs @@ -404,6 +404,10 @@ impl Format { #[doc(alias = "kAudioFormatOpus")] pub const OPUS: Self = Self(u32::from_be_bytes(*b"opus")); + /// Apple Positional Audio Codec, has no flags. + #[doc(alias = "kAudioFormatAPAC")] + pub const APAC: Self = Self(u32::from_be_bytes(*b"apac")); + #[cfg(feature = "ns")] pub fn to_ns_number(self) -> &'static ns::Number { ns::Number::tagged_i32(self.0 as _) @@ -1630,14 +1634,31 @@ pub struct FormatListItem { pub struct Mpeg4Object(pub c_long); impl Mpeg4Object { + #[doc(alias = "kMPEG4Object_AAC_Main")] pub const AAC_MAIN: Self = Self(1); + + #[doc(alias = "kMPEG4Object_AAC_LC")] pub const AAC_LC: Self = Self(2); + + #[doc(alias = "kMPEG4Object_AAC_SSR")] pub const AAC_SSR: Self = Self(3); + + #[doc(alias = "kMPEG4Object_AAC_LTP")] pub const AAC_LTP: Self = Self(4); + + #[doc(alias = "kMPEG4Object_AAC_SBR")] pub const AAC_SBR: Self = Self(5); + + #[doc(alias = "kMPEG4Object_AAC_Scalable")] pub const AAC_SCALABLE: Self = Self(6); + + #[doc(alias = "kMPEG4Object_TwinVQ")] pub const TWIN_VQ: Self = Self(7); + + #[doc(alias = "kMPEG4Object_CELP")] pub const CELP: Self = Self(8); + + #[doc(alias = "kMPEG4Object_HVXC")] pub const HVXC: Self = Self(9); }