View Source Membrane.AAC (Membrane AAC Format v0.7.1)
Capabilities for Advanced Audio Codec.
Link to this section Summary
Types
Identifiers of MPEG Audio Object Types
Identifiers of MPEG Audio channel configurations
Indicates whether stream contains AAC frames only or are they encapsulated in ADTS
AAC frame length identifiers.
Identifiers of MPEG Audio sampling frequencies
Link to this section Types
@type audio_object_type_id_t() :: 1..5 | 29
Identifiers of MPEG Audio Object Types
@type channel_config_id_t() :: 0..7
Identifiers of MPEG Audio channel configurations
@type encapsulation_t() :: :none | :ADTS
Indicates whether stream contains AAC frames only or are they encapsulated in ADTS
@type frame_length_id_t() :: 0 | 1
AAC frame length identifiers.
0
indicates 1024 samples/frame and 1
- 960 samples/frame.
@type mpeg_version_t() :: 2 | 4
@type profile_t() :: :main | :LC | :SSR | :LTP | :HE | :HEv2
@type samples_per_frame_t() :: 1024 | 960
@type sampling_frequency_id_t() :: 0..12 | 15
Identifiers of MPEG Audio sampling frequencies
@type t() :: %Membrane.AAC{ channels: pos_integer(), encapsulation: encapsulation_t(), frames_per_buffer: pos_integer(), mpeg_version: mpeg_version_t(), profile: profile_t(), sample_rate: pos_integer(), samples_per_frame: 1024 | 960 }
Link to this section Functions
@spec aot_id_to_profile(audio_object_type_id_t()) :: profile_t()
@spec channel_config_id_to_channels(channel_config_id_t()) :: pos_integer() | :AOT_specific
@spec channels_to_channel_config_id(channels :: pos_integer() | :AOT_specific) :: channel_config_id_t()
@spec frame_length_id_to_samples_per_frame(frame_length_id_t()) :: samples_per_frame_t()
@spec profile_to_aot_id(profile_t()) :: audio_object_type_id_t()
@spec sample_rate_to_sampling_frequency_id(sample_rate :: pos_integer()) :: sampling_frequency_id_t()
@spec samples_per_frame_to_frame_length_id(samples_per_frame_t()) :: pos_integer()
@spec sampling_frequency_id_to_sample_rate(sampling_frequency_id_t()) :: pos_integer() | :explicit