Membrane AAC Format v0.1.0 Membrane.AAC View Source

Capabilities for Advanced Audio Codec.

Link to this section Summary

Link to this section Types

Link to this type

audio_object_type_id_t()

View Source
audio_object_type_id_t() :: 1..5 | 29

Identifiers of MPEG Audio Object Types

Link to this type

channel_config_id_t()

View Source
channel_config_id_t() :: 0..7

Identifiers of MPEG Audio channel configurations

Link to this type

encapsulation_t()

View Source
encapsulation_t() :: :none | :ADTS

Indicates whether stream contains AAC frames only or are they encapsulated in ADTS

Link to this type

frame_length_id_t()

View Source
frame_length_id_t() :: 0 | 1

AAC frame length identifiers.

0 indicates 1024 samples/frame and 1 - 960 samples/frame.

Link to this type

mpeg_version_t()

View Source
mpeg_version_t() :: 2 | 4
Link to this type

profile_t()

View Source
profile_t() :: :main | :LC | :SSR | :LTP | :HE | :HEv2
Link to this type

samples_per_frame_t()

View Source
samples_per_frame_t() :: 1024 | 960
Link to this type

sampling_frequency_id_t()

View Source
sampling_frequency_id_t() :: 0..12 | 15

Identifiers of MPEG Audio sampling frequencies

Link to this type

t()

View Source
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

Link to this function

aot_id_to_profile(audio_object_type_id)

View Source
aot_id_to_profile(audio_object_type_id_t()) :: profile_t()
Link to this function

channel_config_id_to_channels(channel_config_id)

View Source
channel_config_id_to_channels(channel_config_id_t()) ::
  {:ok, pos_integer() | :AOT_specific}
Link to this function

channels_to_channel_config_id(channels)

View Source
channels_to_channel_config_id(channels :: pos_integer() | :AOT_specific) ::
  channel_config_id_t()
Link to this function

frame_length_id_to_samples_per_frame(frame_length_id)

View Source
frame_length_id_to_samples_per_frame(frame_length_id_t()) ::
  samples_per_frame_t()
Link to this function

profile_to_aot_id(profile)

View Source
profile_to_aot_id(profile_t()) :: audio_object_type_id_t()
Link to this function

sample_rate_to_sampling_frequency_id(sample_rate)

View Source
sample_rate_to_sampling_frequency_id(sample_rate :: pos_integer() | :explicit) ::
  sampling_frequency_id_t()
Link to this function

samples_per_frame_to_frame_length_id(samples_per_frame)

View Source
samples_per_frame_to_frame_length_id(samples_per_frame_t()) :: pos_integer()
Link to this function

sampling_frequency_id_to_sample_rate(sampling_frequency_id)

View Source
sampling_frequency_id_to_sample_rate(sampling_frequency_id_t()) :: pos_integer()