|
void | loadSound (const QString &filename, const QString &id) |
| Load sound file to be accessed under ID. More...
|
|
void | playSound (const QString &id) |
| Play sound with id previously loaded with loadSound. More...
|
|
void | pauseSound (const QString &id) |
| Pauses replay of sound id. Prints warning to logfile if id not found. More...
|
|
void | stopSound (const QString &id) |
| Stops replay of sound id. Prints warning to logfile if id not found. More...
|
|
void | dropSound (const QString &id) |
| remove audio object from memory. Prints warning to logfile if id not found. More...
|
|
qint64 | position (const QString &id) |
| report position (in ms) in running audio track id, or -1 if this is not possible. More...
|
|
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. More...
|
|
Definition at line 28 of file StelAudioMgr.hpp.
void StelAudioMgr::dropSound |
( |
const QString & |
id | ) |
|
|
slot |
remove audio object from memory. Prints warning to logfile if id not found.
qint64 StelAudioMgr::duration |
( |
const QString & |
id | ) |
|
|
slot |
report duration (in ms) in running audio track id, 0 if unknown (before playback starts!), or -1 if this is not possible.
- Note
- duration may only be detected after playback has started! Call it a second after that.
void StelAudioMgr::loadSound |
( |
const QString & |
filename, |
|
|
const QString & |
id |
|
) |
| |
|
slot |
Load sound file to be accessed under ID.
If id has been defined already, replace the old sound object.
void StelAudioMgr::pauseSound |
( |
const QString & |
id | ) |
|
|
slot |
Pauses replay of sound id. Prints warning to logfile if id not found.
void StelAudioMgr::playSound |
( |
const QString & |
id | ) |
|
|
slot |
Play sound with id previously loaded with loadSound.
Prints warning to logfile if id not found. If sound is already playing, restart it. If sound had been paused previously, continue replay.
qint64 StelAudioMgr::position |
( |
const QString & |
id | ) |
|
|
slot |
report position (in ms) in running audio track id, or -1 if this is not possible.
void StelAudioMgr::stopSound |
( |
const QString & |
id | ) |
|
|
slot |
Stops replay of sound id. Prints warning to logfile if id not found.
The documentation for this class was generated from the following file: