1 short question

Started by dbfreak,

dbfreak

Im using BASS 1.7 in Delphi 6...However when i try to call the BASS_ChannelBytes2Seconds i always get the error "Undeclared identifier: 'BASS_ChannelBytes2Seconds'" ::)

Could someone please tell me what i do wrong?

Thanks
Fredrick

Smayds (Guest)

Here's a little function I use to give me the elapsed time in seconds:

function TAudP.TimeSec(streamnum: DWORD): single;
begin
 // Returns the current play time in seconds
 result:=Bass_ChannelBytes2Seconds(streamnum, Bass_ChannelGetPosition(streamnum));
end;

...Taken right out of a current project's player routines.

You ARE declaring Bass in your form's Uses, right? ;-)

-Ayden

dbfreak

Thanks a lot, i will try that, and yes i declare BASS in uses :-)