Author Topic: [Visual C#.NET] - SYNC problem!  (Read 2971 times)

ultramax

  • Posts: 55
[Visual C#.NET] - SYNC problem!
« on: 1 Jun '05 - 17:05 »
How can i jump a track to another when the first one reach the end in Visual C#.NET?

I want do this:
when a track reach the end it jump for the next one in the playlist,  ... i tried everything and got none, can someone help me please!!!

Forgive me my bad English!

Thanks,
UltraMAX

Scumpy

  • Guest
Re: [Visual C#.NET] - SYNC problem!
« Reply #1 on: 2 Jun '05 - 10:39 »
You can add a function like this in a timer (use of a listBox):
// If track is finish playing:
if ( Convert.ToInt64( Un4seen.BassLib21.Bass.BASS_ChannelIsActive( strm ) ) == Convert.ToInt64( Un4seen.BassLib21.Bass.BassBool.BassFalse ) & btnPlay.Enabled == false )
{
// Here can add the function to choose the next item in the list and then call the Play function again.
// Remember to Stopp and close the file before you choose the new file in playlist.
}

If you don't now how to change item or selected item, you should read about listBox or listItem if you use that.

A tip for use of Bass, look at the Un4seen.BassLib21 (Bass .Net for VB .Net)

ultramax

  • Posts: 55
Re: [Visual C#.NET] - SYNC problem!
« Reply #2 on: 2 Jun '05 - 11:43 »
Thanks a lot Scumpy for replying, but it don't work ... a time ago i used a SYNC in Delphi that resolves this problem very well using "BASS_SYNC_END" ... the problem now is ... dam ... i can't convert that piece of code from Delphi to Visual C#  :-\

anyway Scumpy, thank you man  :)

UltraMAX

Scumpy

  • Guest
Re: [Visual C#.NET] - SYNC problem!
« Reply #3 on: 2 Jun '05 - 23:31 »
Here is a Delpi to C# converter:  ;)
Look for "BabbelFisken"!

homepage:
http://web.telia.com/~u31115556/desc/programs.htm

Download link:
http://web.telia.com/~u31115556/zip/MyUtils/BabbelFisken/Zexedir.zip

I haven't try it so I don't know how it works.