kaudiorecordstream.cpp
57 KAudioRecordStream::KAudioRecordStream( KArtsServer * kserver, const TQString & title, TQObject * parent, const char * name )
72 d->effectStack = Arts::DynamicCast( d->kserver->server().createObject( "Arts::StereoEffectStack" ) );
73 d->convert = Arts::DynamicCast( d->kserver->server().createObject( "Arts::AudioToByteStream" ) );
180 kdDebug( 400 ) << k_funcinfo << "samplingRate: " << samplingRate << " bits: " << bits << " channels: " << channels << endl;
188 kdWarning( 400 ) << "invalid stream parameters: rate=" << samplingRate << ", " << bits << " bit, " << channels << " channels\n";
kdbgstream kdWarning(int area=0)
void start(int samplingRate, int bits, int channels)
Attach to the soundserver and start getting data to read.
Definition: kaudiorecordstream.cpp:178
void usePolling(bool)
If you want to poll for data using read() set this to true.
Definition: kaudiorecordstream.cpp:137
kndbgstream & endl(kndbgstream &s)
kdbgstream kdDebug(int area=0)
void setBlockingIO(bool)
If you set blockingIO to true the read method will wait until it has enough data to return exactly wh...
Definition: kaudiorecordstream.cpp:127
KArtsServer is a wrapper to conveniently get a reference to a SoundServer, and restart artsd when nec...
Definition: kartsserver.h:38
Arts::StereoEffectStack effectStack() const
Definition: kaudiorecordstream.cpp:149
kdbgstream kdFatal(int area=0)
void stop()
Detaches the stream from the soundserver but doesn't remove the Synth_AMAN_RECORD so that the entry i...
Definition: kaudiorecordstream.cpp:159
KAudioRecordStream(KArtsServer *server, const TQString &title, TQObject *parent=0, const char *name=0)
Construct a KAudioRecordStream.
Definition: kaudiorecordstream.cpp:57