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

This commit is contained in:
fabian committed 2022-08-22 13:59:00 +02:00
1 parent 15a65f7391
commit 13e62fea19
4 files changed
+13 -4

No files matched your search

+2 -2
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();
};
+1
View File
@@ -22,4 +22,5 @@ class Playlist {
void restart();
void set_current_time(uint32_t time);
uint32_t get_current_time();
void shuffle();
};