10 #include <QKeySequence> 12 #include <QListWidget> 13 #include <QListWidgetItem> 17 #include <QStandardItem> 56 QKeySequence shortcut,
57 int shortcutVirtualKey =-1,
60 QObject *parent =
nullptr );
83 QObject * parent=
nullptr);
129 int addSound(QString filename,
float mainVolume = 1.0,
float vacVolume = 1.0);
257 #endif // SOUNDWRAPPER_H void UnexistantFile()
Used to send warning to main ui that a file doesn't exist.
The CustomPlayer class, inherits QObject to access signals and slots.*.
Definition: CustomPlayer.h:63
void Stop()
Tell the player to stop playing the sound.
Definition: soundwrapper.cpp:95
QVector< LIDL::SoundFile * > _soundList
Definition: soundwrapper.h:166
int addSound(QString filename, float mainVolume=1.0, float vacVolume=1.0)
Used by OpenEXPJson to add the revelant sound files.
Definition: soundwrapper.cpp:396
int getVacDevice()
Definition: soundwrapper.cpp:456
SoundWrapper(QObject *parent=nullptr)
Definition: soundwrapper.cpp:4
QKeySequence getKeySequence()
Definition: soundwrapper.cpp:113
friend bool operator!=(const SoundWrapper &a, const SoundWrapper &b)
Deprecated.
Definition: soundwrapper.cpp:485
void VACDeviceChanged(int)
Set the VAC output device of the player according to the combo box in the UI.
Definition: soundwrapper.cpp:390
File describing the CustomPlayer class.
QList< QStandardItem * > getSoundAsItem()
Definition: soundwrapper.cpp:163
QJsonObject GetWrapperAsObject() const
GetWrapperAsObject.
Definition: soundwrapper.cpp:290
void holdPTTProxy(int)
This signal is sent whenever the "holdPTT" signal of the player is sent.
QVector< LIDL::SoundFile * > getSoundList()
Definition: soundwrapper.cpp:108
void Play()
Tell the player to play the sound according to the playback mode.
Definition: soundwrapper.cpp:90
bool checkFileExistence(QString fileName)
Definition: soundwrapper.cpp:415
LIDL::Playback _playMode
Definition: soundwrapper.h:168
QString getSoundListAsQString()
Definition: soundwrapper.cpp:132
unsigned int getShortcutVirtualKey()
Definition: soundwrapper.cpp:285
Inherits QObject.
Definition: soundwrapper.h:35
void clearShorcut()
Clears the shortcut of the wrapper. (Display purposes)
Definition: soundwrapper.cpp:421
unsigned int _virtualKey
Definition: soundwrapper.h:172
CustomPlayer * _player
Definition: soundwrapper.h:174
void ErrorPlaying(QString)
Used to send a warning to main ui that an error happened playing a file.
void setPlayerVACOutput(int index)
Set the index of the VAC output device.
Definition: soundwrapper.cpp:410
QKeySequence _keySequence
Definition: soundwrapper.h:171
void setPlayerMainOutput(int index)
Set the index of the main output device.
Definition: soundwrapper.cpp:405
LIDL::Playback getPlayMode()
Definition: soundwrapper.cpp:127
int getMainDevice()
Definition: soundwrapper.cpp:451
void OutputDeviceChanged(int)
Set the main output device of the player according to the combo box in the UI.
Definition: soundwrapper.cpp:383
void NowPlaying(QString)
Used to send a message to main ui that a file is playing.
Playback
The Playback enum.
Definition: EnumsAndStructs.h:27
friend bool operator==(const SoundWrapper &a, const SoundWrapper &b)
Deprecated.
Definition: soundwrapper.cpp:461