BASS_MusicGetChannelVol??

Started by Marcos,

Marcos

Hai there,

Since I'm a total newbie at programming musicprogs I hope I can get an answer from you guys.

My problem is the following:
I've made an Mixer for MP3 in VB6. When playing the music I want to show the output volume level per channel.
Can I use the BASS_MusicGetChannelVol function? And if so: What does the handle mean? When trying I always got -1 = error as a returnvalue.

I guess this is an easy question for you guys but for me it's confusing  :-/. Perhaps you could provide me with some code to show me?

I apreciate the help in advance.

Marcos

Marcos

Oops almost forgot.

Man, I really like Bass. Many thanks to Ian for making it!! I've been searching the net for a long time untill I came across this. Keep on doing this great job!!

Marcos

vertex

hi,

if you are mixing mp3´s you maybe are using channel streams.
also you have to use
DWORD WINAPI BASS_ChannelGetLevel(
    DWORD handle
);
to get the level of a stream.

look into the documentation to get further informations.
also take a look into the vb-samples included in the bass-package! ;o)




if you use the
HSTREAM WINAPI BASS_StreamCreateFile(
    BOOL mem,
    void *file,
    DWORD offset,
    DWORD length,
    DWORD flags
);
function to start a stream it returns a handle (HSTREAM) wich you use for your access to the stream.

the code above is the c/c++ - code out of the bass-manual... don´t ask me how it looks in vb - just take a look into the vb-samples...

cheers,
vtx

Marcos

Thanks for the help! I'm going to try this out.  ;D