fix sigsev cuando se pincha en el botón de play/pause

This commit is contained in:
snt 2024-05-15 02:21:30 +02:00
parent 7bc339dfe3
commit 8f321b9d69
4 changed files with 24 additions and 6 deletions

View file

@ -17,7 +17,7 @@ struct dmxSetting {
int audioDevice;
};
enum Status
enum class Status
{
Stopped,
Paused,
@ -29,6 +29,22 @@ enum Status
PlayingFolderRandom
};
constexpr const char* statusToString(Status e) noexcept
{
switch (e)
{
case Status::Stopped: return "Stop";
case Status::Paused: return "Paused";
case Status::PlayingOnce: return "Play 1";
case Status::PlayingLoop: return "Play Loop";
case Status::Iddle: return "Iddle";
case Status::PlayingFolder: return "Play Folder";
case Status::PlayingFolderLoop: return "Play Folder Loop";
case Status::PlayingFolderRandom: return "Playing Folder Random";
default: return "--++--";
}
}
/*
static const char* StatusStr[] =
{
"Stop",
@ -40,7 +56,7 @@ static const char* StatusStr[] =
"Play Folder Loop",
"Play Folder Rand",
0x0
};
};*/
enum Slider
{