欢迎来到天天文库
浏览记录
ID:33938952
大小:667.14 KB
页数:63页
时间:2019-03-01
《Audio Queue Services Programming Guide.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AudioQueueServicesProgrammingGuideContentsIntroduction6WhatIsAudioQueueServices?6WhoShouldReadThisGuide?7OrganizationofThisDocument7SeeAlso7AboutAudioQueues9WhatIsanAudioQueue?9AudioQueueArchitecture9AudioQueueBuffers11TheBufferQueueandEnqueuing12TheAudioQueueCallbackFunction16U
2、singCodecsandAudioDataFormats18AudioQueueControlandState20AudioQueueParameters21RecordingAudio23DefineaCustomStructuretoManageState23WriteaRecordingAudioQueueCallback25TheRecordingAudioQueueCallbackDeclaration25WritinganAudioQueueBuffertoDisk26EnqueuinganAudioQueueBuffer27AFullR
3、ecordingAudioQueueCallback27WriteaFunctiontoDeriveRecordingAudioQueueBufferSize29SetaMagicCookieforanAudioFile31SetUpanAudioFormatforRecording32CreateaRecordingAudioQueue34CreatingaRecordingAudioQueue34GettingtheFullAudioFormatfromanAudioQueue35CreateanAudioFile36SetanAudioQueue
4、BufferSize37PrepareaSetofAudioQueueBuffers38RecordAudio39CleanUpAfterRecording402010-07-09
5、Copyright©2010AppleInc.AllRightsReserved.2ContentsPlayingAudio41DefineaCustomStructuretoManageState41WriteaPlaybackAudioQueueCallback43ThePlaybackAudioQueueCallbackDeclaration43ReadingFrom
6、aFileintoanAudioQueueBuffer44EnqueuinganAudioQueueBuffer44StoppinganAudioQueue45AFullPlaybackAudioQueueCallback46WriteaFunctiontoDerivePlaybackAudioQueueBufferSize47OpenanAudioFileforPlayback49ObtainingaCFURLObjectforanAudioFile49OpeninganAudioFile50ObtainingaFile’sAudioDataForm
7、at51CreateaPlaybackAudioQueue52SetSizesforaPlaybackAudioQueue53SettingBufferSizeandNumberofPacketstoRead53AllocatingMemoryforaPacketDescriptionsArray54SetaMagicCookieforaPlaybackAudioQueue55AllocateandPrimeAudioQueueBuffers57SetanAudioQueue’sPlaybackGain59StartandRunanAudioQueue
8、59CleanUpAfterPlaying61DocumentRevisionHistory622010-07-09
9、Copyright©2010AppleInc.AllRightsReserved.3FiguresandListingsAboutAudioQueues9Figure1-1Arecordingaudioqueue10Figure1-2Aplaybackaudioqueue11Figure1-3Therecordingprocess13Figure1-4Theplaybackprocess15Figure1-5Audioformatcon
10、versionduringrecording19Figure1-6Audioformatcon
此文档下载收益归作者所有