Amazing Audio Engine音频引擎

联合创作 · 2023-09-27 08:25

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];
浏览 20
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报