kaudioplaystream.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef KAUDIOPLAYSTREAM_H
00021 #define KAUDIOPLAYSTREAM_H
00022 
00023 #include <qobject.h>
00024 
00025 #include <qcstring.h>
00026 #include <stdsynthmodule.h>
00027 
00028 class KArtsServer;
00029 namespace Arts { class StereoEffectStack; }
00030 
00031 class KAudioPlayStreamPrivate;
00032 
00040 class KAudioPlayStream : public QObject {
00041    Q_OBJECT
00042 public:
00051     KAudioPlayStream( KArtsServer* server, const QString title, QObject* parent=0, const char* name=0 );
00055     ~KAudioPlayStream();
00056 
00063     void setPolling( bool );
00068     bool polling() const;
00069 
00073     bool running() const;
00074 
00078     Arts::StereoEffectStack effectStack() const;
00079 public slots:
00086     void start( int samplingRate, int bits, int channels );
00090     void stop();
00091 
00096     void write( QByteArray& data );
00097 signals:
00102     void requestData( QByteArray& );
00103 
00107     void running( bool );
00108 
00112     void noData();
00113 public:
00117     void fillData( Arts::DataPacket<Arts::mcopbyte> *packet );
00118 private:
00119     KAudioPlayStreamPrivate* d;
00120 };
00121 
00122 #endif // KAUDIOPLAYSTREAM_H
00123 
00124 
 
This file is part of the documentation for arts Library Version 3.2.0.