play();
}
+void Jukebox::previous()
+{
+ if(shuffle)
+ return next();
+
+ stop();
+ if(tracks.size()>1)
+ {
+ if(current_track==tracks.begin())
+ current_track=tracks.end();
+ --current_track;
+ signal_track_changed.emit(*current_track);
+ }
+ play();
+}
+
void Jukebox::stop()
{
streamer.stop();