KAudioRecordStream Class Reference
A KDE wrapper around Synth_AMAN_RECORD/AudioToByteStream/ByteSoundReceiver. More...
#include <kaudiorecordstream.h>
Inheritance diagram for KAudioRecordStream:

Public Slots | |
void | stop () |
void | start (int samplingRate, int bits, int channels) |
void | flush () |
Signals | |
void | data (QByteArray &data) |
void | running (bool) |
Public Methods | |
KAudioRecordStream (KArtsServer *server, const QString &title, QObject *parent=0, const char *name=0) | |
~KAudioRecordStream () | |
int | read (char *, int size) |
void | setBlockingIO (bool) |
bool | blockingIO () const |
void | usePolling (bool) |
bool | polling () const |
Arts::StereoEffectStack | effectStack () const |
bool | running () const |
Detailed Description
A KDE wrapper around Synth_AMAN_RECORD/AudioToByteStream/ByteSoundReceiver.
- Author:
- Matthias Kretz <kretz@kde.org>
- Since:
- 3.2
Definition at line 39 of file kaudiorecordstream.h.
Constructor & Destructor Documentation
|
Construct a KAudioRecordStream.
Definition at line 57 of file kaudiorecordstream.cpp. References QObject::connect(). |
Member Function Documentation
|
You can read If blockingIO() is set the method will return as soon as it has all your data and could possibly block your program. The method returns the number of bytes that are actually in the buffer.
Definition at line 96 of file kaudiorecordstream.cpp. References data(). |
|
If you set blockingIO to true the read method will wait until it has enough data to return exactly what you asked for. If blockingIO is false you can count on having control back to your program soon enough Definition at line 127 of file kaudiorecordstream.cpp. |
|
read blocking I/O setting.
Definition at line 132 of file kaudiorecordstream.cpp. |
|
If you want to poll for data using read() set this to true. If you'd rather not poll use the data() signal for asynchronous I/O. If you set polling to true and don't call read() or flush() the inputbuffer will grow endlessly. The default is false (if you want to use read() set this to true). Definition at line 137 of file kaudiorecordstream.cpp. |
|
read whether polling is enabled.
Definition at line 144 of file kaudiorecordstream.cpp. Referenced by usePolling(). |
|
Definition at line 149 of file kaudiorecordstream.cpp. |
|
Definition at line 154 of file kaudiorecordstream.cpp. |
|
Detaches the stream from the soundserver but doesn't remove the Synth_AMAN_RECORD so that the entry in the Audiomanager remains.
Definition at line 159 of file kaudiorecordstream.cpp. References running(). |
|
Attach to the soundserver and start getting data to read. This method must be called as soon as you want to receive data. In any case you have to call start() before read()
Definition at line 178 of file kaudiorecordstream.cpp. References QObject::connect(), data(), and running(). |
|
flush input buffer.
Definition at line 214 of file kaudiorecordstream.cpp. Referenced by usePolling(). |
|
Data from the aRts server has arrived. You should copy the data because the passed QByteArray will be deleted right after returning from your slot(s).
|
|
Wether this RecordStream is recording or not.
|
The documentation for this class was generated from the following files: