Membrane Caps: Audio.MPEG v0.1.1 Membrane.Caps.Audio.MPEG View Source
This module implements struct for caps representing MPEG audio stream.
Link to this section Summary
Functions
Returns amount of raw audio samples that are in the frame for given version/layer combination
Returns one ‘silent’ frame along with its caps
Link to this section Types
Link to this type
channel_mode_t()
View Source
channel_mode_t() :: :stereo | :joint_stereo | :dual_channel | :single_channel
Link to this type
emphasis_mode_t()
View Source
emphasis_mode_t() :: :none | :emphasis_50_15 | :reserved | :ccit_j_17
Link to this type
mode_extension_t()
View Source
mode_extension_t() :: :mode0 | :mode1 | :mode2 | :mode3 | nil
Link to this type
t()
View Source
t() :: %Membrane.Caps.Audio.MPEG{ bitrate: bitrate_t(), channel_mode: channel_mode_t(), channels: term(), copyright: copyright_t(), crc_enabled: crc_enabled_t(), emphasis_mode: emphasis_mode_t(), layer: layer_t(), mode_extension: mode_extension_t(), original: original_t(), padding_enabled: padding_enabled_t(), private: private_t(), sample_rate: sample_rate_t(), version: version_t() }
Link to this section Functions
Link to this function
samples_per_frame(atom1, atom2)
View Source
samples_per_frame(version_t(), layer_t()) :: pos_integer()
Returns amount of raw audio samples that are in the frame for given version/layer combination.
Inlined by the compiler.
Returns one ‘silent’ frame along with its caps.
Inlined by the compiler.