About the single-22.05k sampling rate that can only be recognized when decoding or playing aac_he_v2 with the Audiofile-related API in iOS

Source: Internet
Author: User

About the single-22.05k sampling rate that can only be recognized when decoding or playing aac_he_v2 with the Audiofile-related API in iOS


In the official Aqplayer Demo and Aqofflinerender, the Audiofile related APIs are used to read the audio files, and in most cases, they are all fine. However, when reading or playing AAC_HE_V2 format audio, there will be an issue where only the original dual channel 44100 sample rate file is read as Mono 22050 sample.

When calling Audiofilegetproperty, use the

When the kaudiofilepropertydataformat parameter Gets the file format, only mono 22050 sampling is recognized.


is iOS not supported for AAC_HE_V2 decoding? Not possible, this format is Apple's official push of the audio format, iOS no reason not to support. In fact, the problem is on this kaudiofilepropertydataformat, the API will only get to the lowest level of the coding level. We know that the AAC_HE_V2 encoding includes a three-layer format, (take the source file 44100 Two-channel lift column) The first layer: only 22050, mono, second layer, support 44100, mono, third layer support 44100, dual channel.

In this case, the third layer of the format is not available with Kaudiofilepropertydataformat, at this point, you need to use another interface parameter kaudiofilepropertyformatlist to obtain the third layer of the format.


Encapsulates a code to get the best playback format, see

Http://www.mingjianhua.com/post/iOSAudioFileDecodeAAC_HE_V2.html

About the single-22.05k sampling rate that can only be recognized when decoding or playing aac_he_v2 with the Audiofile-related API in iOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.