DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   audio level detection (http://www.daniweb.com/forums/thread27640.html)

larmit Jul 7th, 2005 3:36 pm
audio level detection
 
I was wondering if anybody has used the audio level detection software available at http://www.vbcodesource.com/downloads/audiolevel.zip
When I download the source code and run it I get two errors:
"Couldn't get wavein meter"
"Couldn't get waveout meter"

I am a beginner programmer and appreciate any advice or suggestions.

Thanks!

Joe

PS I am running Windows 2000 on an IBM Thinkpad

Comatose Jul 7th, 2005 3:46 pm
Re: audio level detection
 
The only thing I get is an EXE, which I will NOT run unless I have the source code (then I'll compile it and run it).

jwshepherd Jul 7th, 2005 3:54 pm
Re: audio level detection
 
The exe is compressed zip. Seems safe enough. I see if i can get the error.

larmit Jul 7th, 2005 4:11 pm
Re: audio level detection
 
1 Attachment(s)
I've uploaded the source files so you don't need to use the .exe to unzip.

Joe

larmit Jul 8th, 2005 10:53 am
Re: audio level detection
 
I just found out that the program only works on certain sound cards. Would you mind running it and if it works letting me know what model sound card you have? Thank you!

Joe

AlanC Jul 15th, 2005 3:59 pm
Re: audio level detection
 
Larmit,

Many sound cards don't have vu meters.

Have you considered putting the card in recording mode and grabbing some samples? You could loop round until an input is detected, or just use it as an indicator.. if you use 8-bit mode it makes it dead easy as the samples will be 127 if there's no input and anything else if there is. Hope this makes sense..

I've got some code somewhere that will do this if you need it.

Best of luck
Alan

larmit Jul 15th, 2005 4:05 pm
Re: audio level detection
 
Yes, I'd greatly appreciate it if you could share your code that accomplishes this.

THANK YOU.

Joe

AlanC Jul 17th, 2005 2:25 pm
Re: audio level detection
 
1 Attachment(s)
Larmit..

Please see the attached zipped VB6 project. The code is thoroughly commented so hopefully should be easy to use...

The pre-compiled exe was compiled on a Win98SE system and because of the nature of the API used (winmm.dll) you will need to compile it again if the target system is NT/W2000/XP.

If it doesn't run as expected, I can do a version for you with lots of diagnostics in so we can see at which point it is failing.

Don't forget that this works by putting the sound driver in record mode, so you'll need to set up the Windows audio recording mixer to actually give you an input..

Let me know how you get on.

Usual disclaimers apply about this developmental software...

Regards
Alan :) :)

larmit Jul 18th, 2005 3:31 pm
Re: audio level detection
 
Alan,
You are awesome! Thank you so much. Your program works beautifully. This is most helpful.

Joe

AlanC Jul 19th, 2005 7:11 am
Re: audio level detection
 
Joe

Thanks! Glad to have been of assistance.

Alan


All times are GMT -4. The time now is 12:08 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC