#include <kaudioplayer.h>
Public Slots | |
| void | play () |
Public Methods | |
| KAudioPlayer (const QString &filename, QObject *parent=0, const char *name=0) | |
| ~KAudioPlayer () | |
Static Public Methods | |
| void | play (const QString &filename) |
It doesn't require linking any special libraries, as it operates over DCOP. In the current implementation, it only indirectly communicates with the aRts soundserver, using knotify as DCOP -> MCOP bridge.
Due to that fact, if you need "fast" response times, more control or feedback, use the MCOP interfaces rather than this.
An example of using this class is:
KAudioPlayer::play("/var/share/foo.wav");
If you want to use signals & slots, you can do something like:
KAudioPlayer player("/var/share/foo.wav");
connect(&button, SIGNAL(clicked()), &player, SLOT(play()));
Definition at line 55 of file kaudioplayer.h.
|
||||||||||||||||
|
Constructor.
|
|
|
Destructor. |
|
|
Play function as slot. Plays the soundfile given to the constructor. |
|
|
Static play function.
|
1.2.18