# arts Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# 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 #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:
    00053     KAudioPlayStream( KArtsServer* server, const QString title, QObject* parent=0, const char* name=0 );
    00057     ~KAudioPlayStream();
    00058
    00065     void setPolling( bool );
    00070     bool polling() const;
    00071
    00075     bool running() const;
    00076
    00080     Arts::StereoEffectStack effectStack() const;
    00081 public slots:
    00088     void start( int samplingRate, int bits, int channels );
    00092     void stop();
    00093
    00098     void write( QByteArray& data );
    00099 signals:
    00104     void requestData( QByteArray& );
    00105
    00109     void running( bool );
    00110
    00114     void noData();
    00115 public:
    00119     void fillData( Arts::DataPacket<Arts::mcopbyte> *packet );
    00120 private:
    00121     KAudioPlayStreamPrivate* d;
    00122 };
    00123
    00124 #endif // KAUDIOPLAYSTREAM_H
    00125
    00126 // vim: sw=4 ts=4 tw=80

This file is part of the documentation for arts Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:27:55 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003