LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL about signal from audio-interface

Solved!
Go to solution

I want to know if there is a DLL file that can detect sound coming from the audio interface.

0 Kudos
Message 1 of 8
(3,753 Views)

There's the LabVIEW Sound VI palette which uses lvsound2.dll under the hood. This should cover most of your audio needs. The built in LabVIEW examples include Continuous Sound Input.vi, which shows how to read a signal from the audio device.

 

There's also a third party library called WaveIO which provides additional features like access to ASIO capable audio interfaces. Unless you require very low latency it's easiest to use the LabVIEW Sound VIs.

0 Kudos
Message 2 of 8
(3,709 Views)

Thanks for your answer. I've already tried that. But no device ID could be used to measure the signal. So I was looking for a DLL function that exists by default in Windows. I am new to using DLL functions and I need help.

0 Kudos
Message 3 of 8
(3,671 Views)

Hi Elchuran,

 

Is there any code you can share with what you've tried so far, or any error codes?

 

Try running the attached code to check what input audio devices are available to LabVIEW. If nothing is detected, check the audio input device appears in the Sound settings in Windows.

query_input_devices.png

 

Are you able to verify the input device works with other software, such as Audacity?

 

Also, make sure your audio device is plugged in and ready before starting LabVIEW. LabVIEW doesn't detect any new audio devices plugged in once it has started.

0 Kudos
Message 4 of 8
(3,654 Views)

I will share the code I created for device discovery. Device 0 is the notebook's built-in microphone. There is no response on devices other than 0.
And I ran the file you shared, but it didn't show up in the list except the built-in microphone.Dev_detect.png

 

0 Kudos
Message 5 of 8
(3,635 Views)

It would be also helpful to mention what kind of hardware you intend to interface with this. The LV Sound VIs interface to what the Windows DirectSound API knows about. If your hardware is something else like ASIO or Windows MediaFoundation based, it won't work unless you install some extra compatibility drivers for your device, if available.

Rolf Kalbermatter
My Blog
Message 6 of 8
(3,609 Views)
Solution
Accepted by topic author Elchuran

Perhaps try the WaveIO library. It uses winmm.dll instead of DirectSound, so you might have better luck.

 

To see if your device is discoverable, download and unzip waveio_108.zip from the above link, then open WaveIO.llb and run WaveIO_FindRecordingDevice.vi.

0 Kudos
Message 7 of 8
(3,597 Views)

Thanks for reply my question.

It was a good information for my study.

0 Kudos
Message 8 of 8
(3,578 Views)