iPhone SDK:录制系统声音
目前我正在开发一个鼓应用程序。唯一剩下要做的就是“循环”。
我想通过“录制系统”来制作looper。 (录制鼓声) 我知道如何录制麦克风(我用它来录制声音:)
TempRecFile = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithString:@"VoiceFile"]]];
recorder1 = [[AVAudioRecorder alloc] initWithURL:TempRecFile settings:nil error:nil];
[recorder1 setDelegate:self];
[recorder1 prepareToRecord];
[recorder1 record];
我
怎样才能做同样的事情,但是使用系统声音?
提前致谢!
-DD
currently im developing a drumm app. The only thing that's left to do, is a "looper".
I want to make the looper by "recording the system". (recording the drum sounds)
I know how to record the mic ( Im using this to record sound:
TempRecFile = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithString:@"VoiceFile"]]];
recorder1 = [[AVAudioRecorder alloc] initWithURL:TempRecFile settings:nil error:nil];
[recorder1 setDelegate:self];
[recorder1 prepareToRecord];
[recorder1 record];
)
How can i do the same thing, but with system sounds??
Thank's in advance!
-DD
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许与这篇文章重复?
录制内部声音 iPhone SDK
这并不容易,但仍然是可能的。如果你有信心使用 C++ ,您可以检查 FMOD 库,它还允许您写入原始声音缓冲区。如果你不想使用第三方库,你可以检查苹果的CoreAudio框架。
希望它会有所帮助!
maybe duplicated with this post ?
Record Internal Sound iPhone SDK
This not gonna be easy but still possible.If you are confident with C++ , you can check FMOD library which also allows you to write to raw sound buffer. If you don't want to use 3-rd party library , you can check apple's CoreAudio framework.
Hope it will Help!