This is not an easy thing.
What error messages do you get?
Maybe this Bass Project is not so good to start with.
Try this other bass project:
http://downloads.lineof7s.2ya.com/BlitzBass160.zipYou need to copy the decls file from the following file to your blitz-installations "userlibs" folder:
http://www.nigelibrown.pwp.blueyonder.co.uk/blitz/userlibs/index.htmThe BlitzBass160.zip used the old CallDLL commands, which became pretty obsolete with the introduction of Blitz userlibs (decls). LineOf7s however stated (http://www.blitzbasic.com/Community/posts.php?topic=61339#686129)
that the userlib found here
http://www.nigelibrown.pwp.blueyonder.co.uk/blitz/userlibs/index.htm can be used with BlitzBass160.zip(you may have to replace and/or edit some things).
Note: when there are DLLs with the blitz code, then you need to copy the *.decls files to the userlibs folder of your blitz installation folder. The *.DLL files should be copied to the folder where the sourcecode resides (for distribution purposes, and NOT in the userlibs folder, as many people say)
An other idea, pretty hackish:
In the code archives there is some code to record and save a WAV somewhere. What you cound do is: Determine where it copies the recorded sample data (may be a simple bank), then read the last say 100 samples, add them together to get a volume peak.
For this you may need to study the WAV file format first, including how sampling works.