StelAudioMgr.hpp   StelAudioMgr.hpp 
skipping to change at line 37 skipping to change at line 37
class StelAudioMgr : public QObject class StelAudioMgr : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
StelAudioMgr(); StelAudioMgr();
~StelAudioMgr(); ~StelAudioMgr();
public slots: public slots:
//! Load sound file to be accessed under ID.
//! If id has been defined already, replace the old sound object.
void loadSound(const QString& filename, const QString& id); void loadSound(const QString& filename, const QString& id);
//! Play sound with id previously loaded with loadSound. Prints warn
ing to logfile if id not found.
//! If sound is already playing, restart it. If sound had been pause
d previously, continue replay.
void playSound(const QString& id); void playSound(const QString& id);
//! Pauses replay of sound id. Prints warning to logfile if id not f ound.
void pauseSound(const QString& id); void pauseSound(const QString& id);
//! Stops replay of sound id. Prints warning to logfile if id not fo und.
void stopSound(const QString& id); void stopSound(const QString& id);
//! remove audio object from memory. Prints warning to logfile if id not found.
void dropSound(const QString& id); void dropSound(const QString& id);
//! report position (in ms) in running audio track id, or -1 if this
is not possible.
qint64 position(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.
//! @note duration may only be detected after playback has started!
Call it a second after that.
qint64 duration(const QString& id);
private: private:
QMap<QString, QMediaPlayer*> audioObjects; QMap<QString, QMediaPlayer*> audioObjects;
}; };
#endif // _STELAUDIOMGR_HPP_ #endif // _STELAUDIOMGR_HPP_
 End of changes. 6 change blocks. 
0 lines changed or deleted 17 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/