fix sigsev cuando se pincha en el botón de play/pause
This commit is contained in:
parent
7bc339dfe3
commit
8f321b9d69
4 changed files with 24 additions and 6 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue