944,089 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jul 7th, 2005
0

audio level detection

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
larmit is offline Offline
7 posts
since Jun 2005
Jul 7th, 2005
0

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).
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jul 7th, 2005
0

Re: audio level detection

The exe is compressed zip. Seems safe enough. I see if i can get the error.
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Jul 7th, 2005
0

Re: audio level detection

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, 1020 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
larmit is offline Offline
7 posts
since Jun 2005
Jul 8th, 2005
0

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
larmit is offline Offline
7 posts
since Jun 2005
Jul 15th, 2005
0

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
Reputation Points: 13
Solved Threads: 1
Light Poster
AlanC is offline Offline
31 posts
since Jul 2005
Jul 15th, 2005
0

Re: audio level detection

Yes, I'd greatly appreciate it if you could share your code that accomplishes this.

THANK YOU.

Joe
Reputation Points: 10
Solved Threads: 0
Newbie Poster
larmit is offline Offline
7 posts
since Jun 2005
Jul 17th, 2005
0

Re: audio level detection

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, 1296 views)
Reputation Points: 13
Solved Threads: 1
Light Poster
AlanC is offline Offline
31 posts
since Jul 2005
Jul 18th, 2005
0

Re: audio level detection

Alan,
You are awesome! Thank you so much. Your program works beautifully. This is most helpful.

Joe
Reputation Points: 10
Solved Threads: 0
Newbie Poster
larmit is offline Offline
7 posts
since Jun 2005
Jul 19th, 2005
0

Re: audio level detection

Joe

Thanks! Glad to have been of assistance.

Alan
Reputation Points: 13
Solved Threads: 1
Light Poster
AlanC is offline Offline
31 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Sort a dynamic array of structs
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: build help system...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC