kaudioplaystream.h00001
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 #include <kdelibs_export.h>
00029
00030 class KArtsServer;
00031 namespace Arts { class StereoEffectStack; }
00032
00033 class KAudioPlayStreamPrivate;
00034
00042 class KDE_ARTS_EXPORT KAudioPlayStream : public QObject {
00043 Q_OBJECT
00044 public:
00054 KAudioPlayStream( KArtsServer* server, const QString title, QObject* parent=0, const char* name=0 );
00058 ~KAudioPlayStream();
00059
00066 void setPolling( bool );
00071 bool polling() const;
00072
00076 bool running() const;
00077
00081 Arts::StereoEffectStack effectStack() const;
00082 public slots:
00089 void start( int samplingRate, int bits, int channels );
00093 void stop();
00094
00099 void write( QByteArray& data );
00100 signals:
00105 void requestData( QByteArray& );
00106
00110 void running( bool );
00111
00115 void noData();
00116 public:
00120 void fillData( Arts::DataPacket<Arts::mcopbyte> *packet );
00121 private:
00122 KAudioPlayStreamPrivate* d;
00123 };
00124
00125 #endif // KAUDIOPLAYSTREAM_H
00126
00127
|