kaudioplaystream.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2003 Arnold Krille <arnold@arnoldarts.de> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 00018 */ 00019 00020 #ifndef KAUDIOPLAYSTREAM_H 00021 #define KAUDIOPLAYSTREAM_H 00022 00023 #include <tqobject.h> 00024 00025 #include <tqcstring.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 TQObject { 00043 Q_OBJECT 00044 public: 00054 KAudioPlayStream( KArtsServer* server, const TQString title, TQObject* 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( TQByteArray& data ); 00100 signals: 00105 void requestData( TQByteArray& ); 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 // vim: sw=4 ts=4 tw=80