wip show player
This commit is contained in:
parent
33d9cd699e
commit
9c97f20470
23 changed files with 89728 additions and 20 deletions
|
|
@ -59,10 +59,23 @@ constexpr const char* statusToString(Status e) noexcept
|
|||
case Status::PlayingFolderLoop: return "Play Folder Loop";
|
||||
case Status::PlayingFolderRandom: return "Playing Folder Random";
|
||||
default: return "--++--";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#include <QString>
|
||||
|
||||
static Status stringToStatus(QString *statusStr) {
|
||||
if (statusStr->compare("Stopped")) return Stopped;
|
||||
else if (statusStr->compare("Paused")) return Paused;
|
||||
else if (statusStr->compare("PlayingOnce")) return PlayingOnce;
|
||||
else if (statusStr->compare("PlayingLoop")) return PlayingLoop;
|
||||
else if (statusStr->compare("Iddle")) return Iddle;
|
||||
else if (statusStr->compare("PlayingFolder")) return PlayingFolder;
|
||||
else if (statusStr->compare("PlayingFolderLoop")) return PlayingFolderLoop;
|
||||
else if (statusStr->compare("PlayingFolderRandom")) return PlayingFolderRandom;
|
||||
else return Stopped; // Valor por defecto o manejar como error
|
||||
}
|
||||
|
||||
struct layerData {
|
||||
QString media;
|
||||
Status status;
|
||||
|
|
@ -79,5 +92,27 @@ struct layerData {
|
|||
int bus2Vol;
|
||||
float level;
|
||||
};
|
||||
|
||||
struct CueTrack {
|
||||
std::string filePath;
|
||||
int volume = 0; // 0 - 65535 ToDo: change to db -85 - 0
|
||||
int pan = 128; // 0 - 255
|
||||
int pitch = 128; // 0 - 255
|
||||
int bus1 = 255; // 0 - 255
|
||||
int bus2 = 255; // 0 - 255
|
||||
Status status;
|
||||
int fadeOut = 3; // ToDo: change to float or milliseconds
|
||||
int fadeIn = 3;
|
||||
int waitIn = 0;
|
||||
int waitOut = 0;
|
||||
bool stopAtEnd = false; // trigger next cue when this is executed
|
||||
std::string name;
|
||||
std::string description;
|
||||
int userNumber; // cue user id
|
||||
int entryPoint; // 0 - 255
|
||||
int exitPoint; // 0 - 255
|
||||
int audioLayer; // internal audio layer used when cue is loaded
|
||||
};
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // DEFINES_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue