previous()

Skip to the previous track in the tracksession.

Synopsis:

#include <qplayer/qplayer.h>

void previous();

Description:

Skip to the previous track in the tracksession. The track considered the "previous track" depends on the shuffle and repeat settings.

When the repeat mode is REPEAT_ONE or REPEAT_OFF, the previous track is the track immediately preceding the current track in either the sequential playback list (if shuffling is off) or in the randomized list (if shuffling is on). If the current track is the first track in the list, playback stops (because there's no previous track).

When the repeat mode is REPEAT_ALL, the function behaves similarly except that if the current track is the first track, the previous track is the last track in the list (because playback is looped).