Shuffle the playlist before playing if "[random]" is in the rfid data.

This commit is contained in:
2022-08-22 13:59:00 +02:00
parent 15a65f7391
commit 13e62fea19
4 changed files with 13 additions and 4 deletions

View File

@ -19,13 +19,13 @@ class Controller {
unsigned long button_pressed_since = 0;
bool button_already_processed = false;
String read_rfid_data();
public:
void handle();
void next_track();
void prev_track();
void play();
void play(String rfid_id);
void play(String rfid_id, bool shuffle=false);
void stop();
void eof_mp3();
};

View File

@ -22,4 +22,5 @@ class Playlist {
void restart();
void set_current_time(uint32_t time);
uint32_t get_current_time();
void shuffle();
};