pub fn codec_utils_aac_get_sample_rate(audio_config: &[u8]) -> u32
Expand description

Translates the sample rate index found in AAC headers to the actual sample rate.

§audio_config

a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1.

§Returns

The sample rate if sr_idx is valid, 0 otherwise.