How can one recognize a digital audio interface name /vendor (USB digital audio)?
이전 댓글 표시
I tried to use 'audiodevinfo' as follows
myDevice = audiodevinfo;
nInputs = audiodevinfo( 1 );
nOutputs = audiodevinfo( 0 );
inName = myDevice.input.Name;
inID = myDevice.input.ID;
inVER = myDevice.input.DriverVersion;
outID = myDevice.output.ID;
OutName = myDevice.output.Name;
OutVER = myDevice.output.DriverVersion;
but no matter what USB digital audio interface I connect I got
myDevice.output.Name = myDevice.input.Name = 'Primary Sound Capture Driver (Windows DirectSound)'
myDevice.output.DriverVersion = myDevice.input.DriverVersion =
='Windows DirectSound'.
I expect to get the name back something seen in the PC Device-Manager List, such as 'USB One' or 'Komplete 6 Audio'.
Two digital audio devices I connected are 'USB One' and 'Komplete 6 Audio', respectively.
Komplete 6 Audio is a digital audio interface with 24 bits/96000 Hz, 5 analog inputs and 5 analog outputs
And 'USB One' is a digital audio interface with 24/bits/48000Hz, 2 analog inputs and 2 analog outputs.
Eventually, I want to display the device connected to the PC via USB, so that the user knows his/her device connected to the PC is working for the job.
채택된 답변
추가 답변 (2개)
Dinesh Iyer
2015년 8월 4일
0 개 추천
audiodevinfo can output the name of the device if you give it a a device ID. However, the only way you get the device ID is if you look at the output of audiodevinfo and search for the device ID by the device name as the device ID value cannot be independently obtained.
So looks like you have to have a way of tracking which device you are plugging in.
카테고리
도움말 센터 및 File Exchange에서 Multichannel Audio Input and Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!