MediaCodecs.MPEG4.Utils (MediCodecs v0.7.0)

View Source

Utilities functions

Summary

Functions

Returns the channel configuration from channels.

Returns the sampling frequency for a given index.

Returns the sampling frequency index for a given sampling frequency.

Functions

channel_config(channels)

@spec channel_config(non_neg_integer()) :: non_neg_integer()

Returns the channel configuration from channels.

sampling_frequency_from_index(index)

@spec sampling_frequency_from_index(non_neg_integer()) :: non_neg_integer() | nil

Returns the sampling frequency for a given index.

sampling_frequency_index(sample_rate)

@spec sampling_frequency_index(non_neg_integer()) :: non_neg_integer()

Returns the sampling frequency index for a given sampling frequency.