org.kde.koala
public class KAudioPlayer extends QObject
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()"));
UNKNOWN: This class provides one-shot-and-forget audio playing.
Constructor Summary | |
---|---|
protected | KAudioPlayer(Class dummy) |
KAudioPlayer(String filename, QObject parent, String name)
Constructor. | |
KAudioPlayer(String filename, QObject parent) | |
KAudioPlayer(String filename) |
Method Summary | |
---|---|
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
void | play()
Play function as slot.
|
static void | play(String filename)
Static play function. |
Parameters: filename Absolute path to the filename of the sound file to play parent A parent QObject for this KAudioPlayer name An internal name for this KAudioPlayer
UNKNOWN: Constructor.
UNKNOWN: Play function as slot.
Parameters: filename Absolute path to the filename of the sound file to play. if not absolute, goes off KDEDIR/share/sounds/ (preferred)
UNKNOWN: Static play function.