audio level detection

Closed Thread

Join Date: Jun 2005
Posts: 7
Reputation: larmit is an unknown quantity at this point 
Solved Threads: 0
larmit larmit is offline Offline
Newbie Poster

audio level detection

 
0
  #1
Jul 7th, 2005
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
Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: audio level detection

 
0
  #2
Jul 7th, 2005
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).
Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: audio level detection

 
0
  #3
Jul 7th, 2005
The exe is compressed zip. Seems safe enough. I see if i can get the error.
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Quick reply to this message  
Join Date: Jun 2005
Posts: 7
Reputation: larmit is an unknown quantity at this point 
Solved Threads: 0
larmit larmit is offline Offline
Newbie Poster

Re: audio level detection

 
0
  #4
Jul 7th, 2005
I've uploaded the source files so you don't need to use the .exe to unzip.

Joe
Attached Files
File Type: zip volume.zip (13.7 KB, 318 views)
Quick reply to this message  
Join Date: Jun 2005
Posts: 7
Reputation: larmit is an unknown quantity at this point 
Solved Threads: 0
larmit larmit is offline Offline
Newbie Poster

Re: audio level detection

 
0
  #5
Jul 8th, 2005
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
Quick reply to this message  
Join Date: Jul 2005
Posts: 31
Reputation: AlanC is an unknown quantity at this point 
Solved Threads: 1
AlanC's Avatar
AlanC AlanC is offline Offline
Light Poster

Re: audio level detection

 
0
  #6
Jul 15th, 2005
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
Quick reply to this message  
Join Date: Jun 2005
Posts: 7
Reputation: larmit is an unknown quantity at this point 
Solved Threads: 0
larmit larmit is offline Offline
Newbie Poster

Re: audio level detection

 
0
  #7
Jul 15th, 2005
Yes, I'd greatly appreciate it if you could share your code that accomplishes this.

THANK YOU.

Joe
Quick reply to this message  
Join Date: Jul 2005
Posts: 31
Reputation: AlanC is an unknown quantity at this point 
Solved Threads: 1
AlanC's Avatar
AlanC AlanC is offline Offline
Light Poster

Re: audio level detection

 
0
  #8
Jul 17th, 2005
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
Attached Files
File Type: zip Project1.zip (11.8 KB, 560 views)
Quick reply to this message  
Join Date: Jun 2005
Posts: 7
Reputation: larmit is an unknown quantity at this point 
Solved Threads: 0
larmit larmit is offline Offline
Newbie Poster

Re: audio level detection

 
0
  #9
Jul 18th, 2005
Alan,
You are awesome! Thank you so much. Your program works beautifully. This is most helpful.

Joe
Quick reply to this message  
Join Date: Jul 2005
Posts: 31
Reputation: AlanC is an unknown quantity at this point 
Solved Threads: 1
AlanC's Avatar
AlanC AlanC is offline Offline
Light Poster

Re: audio level detection

 
0
  #10
Jul 19th, 2005
Joe

Thanks! Glad to have been of assistance.

Alan
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC