Amazing Audio Engine音頻引擎
Amazing Audio Engine 是基于 Core Audio 的遠(yuǎn)程 IO 系統(tǒng)用以提供低延遲的音頻連接,通過(guò)內(nèi)置的混音、過(guò)濾和生效。該框架支持大多數(shù)音頻格式和比特率,同時(shí)提供音頻輸入、錄制和監(jiān)控功能。
示例代碼:
// Create an instance of the audio controller
self.audioController = [[[AEAudioController alloc]
initWithAudioDescription:
[AEAudioController nonInterleaved16BitStereoAudioDescription]]
autorelease];
AEBlockChannel *channel = [AEBlockChannel channelWithBlock:
^(const AudioTimeStamp *time,
UInt32 frames,
AudioBufferList *audio) {
// Generate audio here
}];
// Add and start playing channel
[_audioController addChannels:[NSArray arrayWithObjects:channel, nil]];
// Start the audio engine.
[_audioController start:NULL];
評(píng)論
圖片
表情
