D
D
Dominik092015-10-18 15:50:45
C++ / C#
Dominik09, 2015-10-18 15:50:45

How to auto play next track in mp3 player?

An mp3 player was written using the winmm.dll library. The program has a listbox and 4 buttons: play, pause, stop and open. How to make it so that after the end of the current track, the next one in the list is played. I will say right away that the program does not have a timer and there is no rewind slider. Therefore, I don't know how, what to focus on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2015-10-18
@Drakonn

create a track list, create a track playback method, to which you pass an element from the list, or this method will choose the next track from this list + check if the next one exists. and then create an event for the end of the track playback and in its handler call again the method that will play the track, but the next one or whatever you code there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question