Audiotoolbox (i)

Source: Internet
Author: User

"51" The long holiday has been really fast, three days so passed. The new week has begun, this week to engage in decoding and playback of audio on the iOS platform. Hands, cut into the audiotoolbox.framework study, this library is too strong, want to thoroughly understand not simple, from a certain extent, is not necessary to engage in a very thorough, because do anything to aim-oriented. Why do you use Audiotoolbox.framework? Can you use Audiotoolbox.framework to meet your needs? If Audiotoolbox.framework can meet their own needs, then use it to achieve their own needs is value-oriented, as far as its deep-seated aspects can be temporarily scrutiny. But to be clear about Audiotoolbox.framework's basic API and usage process, the focus is on AudioFile.h, AudioQueue.h header files (#import <audiotoolbox/audiofile.h >, #import <audiotoolbox/audioqueue.h>, the following articles on AudioFile.h, AudioQueue.h to read carefully:

The AudioFile.h of Audiotoolbox (I.)

The AudioFile.h of Audiotoolbox (ii)

Audiotoolbox's AudioFile.h (iii) Open and close audio files

Audiotoolbox AudioFile.h (Thu) Getting and Setting Audio File Properties

Audiotoolbox AudioQueue.h (i) controlling Audio Queues

Audiotoolbox AudioQueue.h (ii) Creating and Disposing of Audio Queues

Audiotoolbox AudioQueue.h (iii) handing Audio Queue buffers (not finished)

Audiotoolbox AudioQueue.h (Thu) manipulating Audio Queue Properties

Using Audioqueue to achieve the audio playback function of the most important step, can be summarized as follows concisely.

1. Open Play audio file
2. Get the data format for playing audio files
3. Prepare the queue for playback
4. Move the data in the buffer to the queue
5. Start Playback
6. Queue processing in callback functions

Read the above article on the use of audiotoolbox.framework have an intuitive understanding of the specific needs of a project how to use it to achieve the purpose? These two blog writing good iphone use Audioqueue play audio files (mp3,aac,caf,wav, etc.), the iphone uses Audioqueue play WAV (PCM code), need to look carefully. Theory and practice, to fix audiotoolbox.framework.

Audiotoolbox (i)

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.