KAudioPlayStream Class Reference
#include <kaudioplaystream.h>
Inheritance diagram for KAudioPlayStream:

Detailed Description
A wrapper around ByteSoundProducer/ByteStreamToAudio/Synth_AMAN_PLAY.
- Author:
- Arnold Krille <arnold@arnoldarts.de>
- Since:
- 3.2
Definition at line 42 of file kaudioplaystream.h.
Public Slots | |
void | start (int samplingRate, int bits, int channels) |
void | stop () |
void | write (QByteArray &data) |
Signals | |
void | requestData (QByteArray &) |
void | running (bool) |
void | noData () |
Public Member Functions | |
KAudioPlayStream (KArtsServer *server, const QString title, QObject *parent=0, const char *name=0) | |
~KAudioPlayStream () | |
void | setPolling (bool) |
bool | polling () const |
bool | running () const |
Arts::StereoEffectStack | effectStack () const |
void | fillData (Arts::DataPacket< Arts::mcopbyte > *packet) |
Constructor & Destructor Documentation
|
Creates a KAudioPlayStream on server with a title. You should pass the KArtsServer also as parent to be sure this object is deleted before the server is.
Definition at line 85 of file kaudioplaystream.cpp. |
|
Destructs the KAudioPlayStream.
Definition at line 91 of file kaudioplaystream.cpp. |
Member Function Documentation
|
Definition at line 101 of file kaudioplaystream.cpp. |
|
TODO: Implement a queue and fetching from it... Definition at line 154 of file kaudioplaystream.cpp. |
|
Is emitted if the inputbuffer runs dry and polling os off.
|
|
Returns the polling state.
Definition at line 97 of file kaudioplaystream.cpp. |
|
This signal is emitted when audio should be played. You have to fill the array with data. |
|
Is emitted when the state changes.
|
|
Definition at line 99 of file kaudioplaystream.cpp. |
|
Controls wether this Stream should poll the data from you via the signal requestData() or you use write() to fill the inputbuffer. Default is true Definition at line 96 of file kaudioplaystream.cpp. |
|
Start the stream.
Definition at line 105 of file kaudioplaystream.cpp. |
|
Stops the stream.
Definition at line 128 of file kaudioplaystream.cpp. |
|
Write data into the inputbuffer. If you ignore the signal noData() it will play 0 ( silence ). Definition at line 150 of file kaudioplaystream.cpp. |
The documentation for this class was generated from the following files: