LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire Audio from USB Audio coverter

Solved!
Go to solution

Hey Guys, How are you ?

 

I need to measure an Audio using a Shotgum Microphone using USB converter, someone knows the best way to acquire the audio from the USB Converter interface ?

 

Thanks in advanced,

0 Kudos
Message 1 of 5
(3,148 Views)
Solution
Accepted by topic author wmg025

The attached VI should help with the basic structure of how labview captures data from the sound card. You'll need to change the value of the device ID. Make sure your computer recognizes your device & drivers are installed before you try to get labview to talk to it. Be sure to read the detailed help (ctrl-h) for soundcard input. 

 

From there you should be able to process the captured data as needed.

Download All
0 Kudos
Message 2 of 5
(3,139 Views)

Hello, First of all thank you very much for your help and I am sorry because I could not reply before because I was waiting for my microphoe to start working on this.

 

Thanks.

0 Kudos
Message 3 of 5
(3,044 Views)

Is there any different library different from the (unreliable) lvsound2.dll?
It is well known that this DLL creates a sort of devices' list when run but in case of any disconnection/reconnection it is impossible to refresh it without exiting, unloading and then run again.

 

Is there any example using any other DLL from Microsoft?

Certified TestStand Developer
0 Kudos
Message 4 of 5
(815 Views)

Hi,

 

I've written an open source library called G-Audio (github, VIPM) which serves as a complete replacement for lvsound2.dll, plus adds a bunch of features. Among its features is the ability to refresh audio devices after a connect/disconnect. See Query Audio Devices Example.vi included with the library:

 

Dataflow_G_0-1680789579864.png

 

Message 5 of 5
(805 Views)