音频录制的音频输入设备 [英] Audio input device on Audio Recording

查看:90
本文介绍了音频录制的音频输入设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个usb声卡连接到我的系统,我想为每个声卡录制一个特定的信号。如果我的gui上没有下拉列表框,我将如何调用我的USB声卡的名称才能正常工作。直接分配声卡是我所追求的。非常感谢!

I have multiple of usb sound card connected to my system and i want to record one certain signal for each sound card. How will I call the name of my USB sound card to work properly without having a dropdown list box on my gui. Direct assigning of sound card is what i am after. Thanks a lot!

audioRecorder->setAudioInput(); // this part is my question on how will i enter the name of my usb sound card

推荐答案

QAudioRecorder Class [ ^ ]提供 audioInputs()函数返回可用名称列表。如果您不希望列表框从这些列表框中选择但使用硬编码名称,只需打印一次列表即可知道可在系统上使用的名称。



还有函数 audioInputDescription(),它提供了传递的设备名称的用户友好名称,以帮助决定应该使用哪个设备。
The QAudioRecorder Class[^] provides the audioInputs() function returning a list of available names. If you don't want a list box to select from these but use hard coded names, just print the list once to know the names that can be used on your system.

There is also the function audioInputDescription() which provides user friendly names of the passed device name to help deciding which device should be used.


这篇关于音频录制的音频输入设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆