Skip to content

Commit

Permalink
add Apple Positional Audio Codec (APAC) and some doc aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 30, 2024
1 parent 662b51d commit 8c560c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cidre/src/cat/audio/base_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _)
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 8c560c7

Please sign in to comment.