Amazing Audio Engine音频引擎
Amazing Audio Engine 是基于 Core Audio 的远程 IO 系统用以提供低延迟的音频连接,通过内置的混音、过滤和生效。该框架支持大多数音频格式和比特率,同时提供音频输入、录制和监控功能。
示例代码:
// 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];
评论
