LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone know how to control the microphone volume input via LabView?

The Sound vi's don't seem to allow for controlling the microphone recording level. I'm wondering if I could implement it via activeX and windows volume control system?
0 Kudos
Message 1 of 9
(9,201 Views)
Hi,
You can use "Functions\Communication\System Exec.vi" and run the standard windows mixer "sndvol32.exe" which is located in windows directory.

Hope it helps.

Oleg Chutko.
0 Kudos
Message 2 of 9
(9,199 Views)
Great! That helps, but do you know how I might set the microphone recording leve programmaticaly?
0 Kudos
Message 3 of 9
(9,199 Views)
I'm not sure but try to look through the "winmm.dll". It is located it windows system or system32 dir and includes API functions to work with multimedia devices. May be you'll find there something.
Good luck.

Oleg Chutko
0 Kudos
Message 4 of 9
(9,199 Views)
As others have noted the all the functionality you are looking for is in winmm.dll. I recently spent a bit of time getting ahold of the sound card mixer playback volume controls using LabVIEW 7 library calls. I wasn't after the record controls but the attached Volume Control.llb should get you started. My SoundBlaster Live shows a mike volume in the playback group and this set of vi's will change it but I didn't actually talk into the mike to verify. Hope this helps.
Message 5 of 9
(9,200 Views)
Hello

I have the same problem to control the microphone volume. As I have "only" Labview 6.0 I can not open the attached file from "Spectre". Would it be possible to convert this file from the Labview 7.0 to 6.0 or if this doesn't work at least for Labview 6.1?

Thanks for help

Regards
Bartelime
0 Kudos
Message 6 of 9
(9,199 Views)
here is 6.0 - haven't tested, seems OK
edit: zipped
Download All
0 Kudos
Message 7 of 9
(9,199 Views)
Take the VI's from paul_s (See attached in Posting from 20.08.2003). They work fine but eventually you have to configure some parameters in mixerLineSetVolume.vi.
1) Check the parameter "fdwInfo" from "mixerGetLineInfo". The current value is "80000003". Possibly you have to change to "80000001" (See MSDN-Doc.)

2)Set dwDestination and dwSource to "1".

This should help you, controlling the microphone input recording volume!

Regards
Bartelime
0 Kudos
Message 8 of 9
(9,199 Views)

Hi guys.. This thread has been down for some years now, so time to awaken the dead:smileytongue:

 

I have made another thread on the zone which then got linked by a user to this thread. Maybe someone who initially answered in hear is still subscribing to the thread and will hear my cray for help...

 

Is there anybody here with the knowledge of how the llb file attached earlier in this post should be updated to run on VISTA? The control of the mixer is working on XP but not on VISTA, most likely due to the new way audio is handled by VISTA. Main goal is to find a way to lock the input microphone gain of a dedicated USB soundcard via code in a VI..

 

Looking forward to hear from som bright headed LV programmers.

 

Best regard

Jacob Navne

C.E.O SGAudio

Using LV 8.6.1 on XP / VISTA 

0 Kudos
Message 9 of 9
(8,208 Views)