录音时如何播放背景音乐?
朋友们
现在我正在开发iPhone录音机应用程序。
我可以使用示例代码轻松录制我的声音。
我想用我的声音录制背景音乐。
例如,当我单击“录制”按钮时,会播放背景音乐 然后我唱一首歌。
在这种情况下,我应该用我的声音录制背景音乐。
但是,如果我这样做,我就无法记录任何东西。
怎么了?
为此,我应该做什么?
请帮助我..
谢谢。
friends
Now I'm developing iPhone Recorder App.
I can easily record my voice with sample code.
I want to record background music with my voice.
For example,When I click "Record" button,background music plays
Then I sing a song.
In this case,I should record background music with my voice.
But,If I did like that,I can't record anything.
What's wrong?
To do this,what should I do?
Please help me..
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不熟悉 iPhone 编程,但我可以想象,如果您打算在不使用耳机的情况下完成这项工作,那么您想要实现的目标将会受到限制。操作系统可能不允许您同时播放音乐和录音,因为录音会因背景音乐而产生回声。
也就是说,我确信经验丰富的 iPhone 程序员能够准确地告诉您这是如何工作的。
祝你好运,希望我的建议对你有所帮助。
I'm not familiar with programming for the iPhone but I can imagine there would be a limitation to what you like to achieve IF you intend to make this work without using headphones/headset. It just might be that the OS wont let you play music and record at the same time because the recording would result in an echo because of the background music.
That said, I'm sure an experienced iPhone programmer is able to tell you exactly how this would work.
Good luck and I hope my suggestion helps you out.
朋友们
我用OpenAL解决了这个问题。
感谢您的所有影响。
friends
I solved this problem by using OpenAL.
Thanks for all your effet.