LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you get a list of names of installed sound cards?

Hi All

 

I have multiple soundcards installed in my system and want to allow the user to select one of them by its name e.g. "Soundblaster Audio" rather than the genreic device ID number

that labview uses to identify each card.

 

There is an express sound vi called "Play Waveform that when clicked on gives you this functionality but it is not available at runtime as a front panel control, none of the other sound vi's provide this functionality.

 

How could I achieve this?

 

Thanks for your help.

0 Kudos
Message 1 of 3
(2,514 Views)

The Express VI calls Configure Acquire Sound which is in \vi.lib\sound2\_SoundAcquireConfig.llb. Open it and you'll see a subVI called InitializeInputDeviceRing.vi. This gets the number of sounds cards and the names. Use at your own risk. They could change in future releases.

0 Kudos
Message 2 of 3
(2,454 Views)

Thankyou Dennis for your help that works just fine!

 

Note to developers of LabVIEW. What is the purpose of being able to specify a Device ID on the Play sound file.vi when this vi will only ever play audio from the default soundcard, This is completely counter intuitive!!!

0 Kudos
Message 3 of 3
(2,447 Views)