19 #ifndef _STELAUDIOMGR_HPP_ 20 #define _STELAUDIOMGR_HPP_ 39 void loadSound(
const QString& filename,
const QString&
id);
56 QMap<QString, QMediaPlayer*> audioObjects;
59 #endif // _STELAUDIOMGR_HPP_ void stopSound(const QString &id)
Stops replay of sound id. Prints warning to logfile if id not found.
qint64 position(const QString &id)
report position (in ms) in running audio track id, or -1 if this is not possible. ...
void dropSound(const QString &id)
remove audio object from memory. Prints warning to logfile if id not found.
void pauseSound(const QString &id)
Pauses replay of sound id. Prints warning to logfile if id not found.
void loadSound(const QString &filename, const QString &id)
Load sound file to be accessed under ID.
qint64 duration(const QString &id)
report duration (in ms) in running audio track id, 0 if unknown (before playback starts!), or -1 if this is not possible.
void playSound(const QString &id)
Play sound with id previously loaded with loadSound.