25 May '13 - 14:31 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Playing Next Song  (Read 672 times)
kgs51
Posts: 26


« on: 16 Oct '11 - 00:26 »
Reply with quoteQuote

I have programmed my media player in vb.net. I would like to know how I can continue to play the next song in my play list after the previous song ends. Thanks.
Logged
ken
Posts: 630


« Reply #1 on: 17 Oct '11 - 09:32 »
Reply with quoteQuote

I have programmed my media player in vb.net. I would like to know how I can continue to play the next song in my play list after the previous song ends. Thanks.

You should look at BASS_ChannelSetSync to find out when the song ends.
« Last Edit: 17 Oct '11 - 09:36 by ken » Logged
kgs51
Posts: 26


« Reply #2 on: 17 Oct '11 - 12:12 »
Reply with quoteQuote

Actually, I found a way to play the next song. When position = length of song, I have an iteration that goes through all my songs in the playlist and it will automatically play the next indexed song. index += 1. It is working very well.
Logged
ken
Posts: 630


« Reply #3 on: 17 Oct '11 - 16:53 »
Reply with quoteQuote

Actually, I found a way to play the next song. When position = length of song, I have an iteration that goes through all my songs in the playlist and it will automatically play the next indexed song. index += 1. It is working very well.

Sure you can do like that, but if your timer somehow miss the time your next song may not start. BASS_ChannelSetSync triggers an event when the song ends. In the the event you do your stuff with index+=1.

You can also use BASS_ChannelSetSync to get when the song is 5 seconds from end (or any other position) so you can start next song and mix it into the current song, just an idea...

Have a look in BASS manual for BASS_ChannelSetSync.  Good luck!
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines