iOS Audio Queue的使用

Audio Queue介绍

苹果官方文档解释Audio Queue如下:

Overview

This document describes Audio Queue Services, a C programming interface in the Audio Toolbox framework, which is part of Core Audio.

An audio queue is a software object you use for recording or playing audio. An audio queue does the work of:

Connecting to audio hardware

Managing memory

Employing codecs, as needed, for compressed audio formats

Mediating playback or recording

Audio Queue Services enables you to record and play audio in linear PCM, in compressed formats (such as Apple Lossless and AAC), and in other formats for which users have installed codecs. Audio Queue Services also supports scheduled playback and synchronization of multiple audio queues and synchronization of audio with video.

中文解释如下:

AudioQueue是Core Audio的一部分,是Audio Toolbox框架的一套c语言程序接口。一个audio queue是一个你可以用来录制音频和播放音频的一个对象。一个audio queue做如下工作:连接音频硬件、管理内存、使用编解码器压缩音频格式、调解回放或者录音。

Audio Queue Services 可以让你记录和播放线性的PCM数据、压缩格式(例如苹果无损格式和AAC格式)、其他安装了编解码器的格式。Audio Queue Services也支持预回放、同步多音频、使音频和视频同步。

下面我们先使用Audio Queue录制音频,然后再播放录制好的音频文件。

相关内容我已重新写了文章,点击相关链接即可。

Audio Queue录制音频:https://www.jianshu.com/p/15d95e593451
Audio Queue播放音频:https://www.jianshu.com/p/adc5a10cfc92

你可能感兴趣的:(iOS Audio Queue的使用)