arts Library API Documentation

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., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, USA. 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 // vim: sw=4 ts=4 tw=80
KDE Logo
This file is part of the documentation for arts Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 12 15:09:01 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003