Thanks a lot for your reply Jobnik. I will check the errorcode to find out what's going wrong.
In the meantime a have one more question, if you don't mind
I have a problem and I tried to find the solution on this great messageboard, but I can't exactly find it.
I'm witing a Visual Basic program that can mix 2 mp3s together at the same bpm.
Everything works fine, except the most important thing.
Song 1 is playing
Song 2 must start playing at 0'30"234 (because the first beat start here) as soon the position of song 1 is 4'35"010
Sometimes this work perfect and sometimes it don't:
Song 2 starts up with a little delay or it starts at the wrong time-position. I tried to do this with a timer and also with this:
Call BASS_ChannelSetSync(BASS_FX_TempoGetResampledHandle(chan), BASS_SYNC_POS Or BASS_SYNC_MIXTIME, BASS_ChannelSeconds2Bytes(chan, Time2Sec(Break(nr))), AddressOf SYNCPROC, Player)
But it just don't work everytime. What I am I doing wrong? Is there a way to solve this?
Here is how I created the streams:
chan = BASS_StreamCreateFile(BASSFALSE, Filename1, 0, 0, BASS_MP3_SETPOS Or BASS_STREAM_DECODE)
chan1 = BASS_StreamCreateFile(BASSFALSE, Filename2, 0, 0, BASS_MP3_SETPOS Or BASS_STREAM_DECODE)
I also tried to solve this problem with a function that synchronizes the songs by changing the position of song 2. I call the BASS_ChannelSetPosition to do this, but again, sometimes it works and sometimes there's a delay :-(((( It drives me crazy!! I just want to mix 2 songs at a customized time. It most be possible, isn't it??
Thanks in advance!