使用 Qt/Phonon 的多通道音频输入
我的公司目前正在开发一种所谓的音频分析程序,该程序需要实时处理多个音频输入(8 个左右)。这意味着我们需要一个能够处理最多具有 8 个输入通道的多通道音频接口设备的框架。最重要的是,框架应该尽可能可移植。我们实际上是使用 Java 开始开发的,但遇到了声音 API 的问题。
当寻找替代方法来完成我们需要的事情时,我开始考虑使用 C++ 和 Qt。我对两者都有一些经验,但我从来没有做过任何类似的事情(用任何语言)
现在,问题是,Qt/Phonon 可以处理具有超过 2 个输入通道的音频接口/声卡(假设操作系统可以很好地看到设备)?它取决于所使用的后端吗?
My company is currently working on what could be called an audio analysis program which needs to process to multiple audio inputs (8 or so) in real time. This means that we need a framework that can handle multichannel audio interface devices that have up to 8 input channels. On top of this, the framework should be as portable as possible. We actually started our development using Java but it ran into issues with the sound API.
When looking for alternate ways to do what we need, I started thinking about using C++ and Qt. I have some experience with both, but I've never done anything remotely similar (in any language for that matter)
Now, the question is, can Qt/Phonon handle audio interfaces/sound cards with over 2 input channels (assuming that the OS can see the devices just fine)? Would it dependent on the backend being used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
声子作为无输入函数。仅当我是对的时候才可以播放。
但如果你想处理输入音频,你可以使用 QAudioInput 。我只使用了一个音频输入,但我认为 这个构造函数 与右侧的 QAudioDeviceInfo 可以做你想做的事。
Phonon as no input function. it's for playback only if i'm right.
but if you want to process input audio you can use QAudioInput. I've used it with just one audio input but I think this constructor with the right QAudioDeviceInfo could do what you want.