View Single Post
Old 2nd December 2010, 18:25   #8
DrO
 
Join Date: Sep 2003
Posts: 27,873
well there has to be an issue with the indexing that you're trying to do. best to see if your code is actually working in the way expected which i don't think it will ever do as your pos is probably matching the first result in marker[] everytime the loop is run, causing the first item to play.

wouldn't it be better to just use a fixed timer via the SetTimer(..) and when the event for that happens then just get the current playlist position, increment that value and then use the IPC_SETPLAYLISTPOS part (you'd also need to remember to deal with getting to the end of the playlist and possibly looping back to the start if desired otherwise it'll just keep playing the last item i think).

-daz
DrO is offline   Reply With Quote