• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • arts
 

arts

  • arts
  • kde
kaudioplaystream.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Arnold Krille <arnold@arnoldarts.de>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17
18*/
19
20#ifndef KAUDIOPLAYSTREAM_H
21#define KAUDIOPLAYSTREAM_H
22
23#include <tqobject.h>
24
25#include <tqcstring.h>
26#include <stdsynthmodule.h>
27
28#include <tdelibs_export.h>
29
30class KArtsServer;
31namespace Arts { class StereoEffectStack; }
32
33class KAudioPlayStreamPrivate;
34
41
42class KDE_ARTS_EXPORT KAudioPlayStream : public TQObject {
43 TQ_OBJECT
44public:
54 KAudioPlayStream( KArtsServer* server, const TQString title, TQObject* parent=0, const char* name=0 );
58 ~KAudioPlayStream();
59
66 void setPolling( bool );
71 bool polling() const;
72
76 bool running() const;
77
81 Arts::StereoEffectStack effectStack() const;
82public slots:
89 void start( int samplingRate, int bits, int channels );
93 void stop();
94
99 void write( TQByteArray& data );
100signals:
105 void requestData( TQByteArray& );
106
110 void running( bool );
111
115 void noData();
116public:
120 void fillData( Arts::DataPacket<Arts::mcopbyte> *packet );
121private:
122 KAudioPlayStreamPrivate* d;
123};
124
125#endif // KAUDIOPLAYSTREAM_H
KArtsServer
KArtsServer is a wrapper to conveniently get a reference to a SoundServer, and restart artsd when nec...
Definition kartsserver.h:38
KAudioPlayStream::polling
bool polling() const
Returns the polling state.
Definition kaudioplaystream.cpp:97
KAudioPlayStream::setPolling
void setPolling(bool)
Controls wether this Stream should poll the data from you via the signal requestData() or you use wri...
Definition kaudioplaystream.cpp:96
KAudioPlayStream::effectStack
Arts::StereoEffectStack effectStack() const
Definition kaudioplaystream.cpp:101
KAudioPlayStream::KAudioPlayStream
KAudioPlayStream(KArtsServer *server, const TQString title, TQObject *parent=0, const char *name=0)
Creates a KAudioPlayStream on server with a title.
Definition kaudioplaystream.cpp:85
KAudioPlayStream::noData
void noData()
Is emitted if the inputbuffer runs dry and polling os off.
KAudioPlayStream::write
void write(TQByteArray &data)
Write data into the inputbuffer.
Definition kaudioplaystream.cpp:150
KAudioPlayStream::running
void running(bool)
Is emitted when the state changes.
KAudioPlayStream::running
bool running() const
Definition kaudioplaystream.cpp:99
KAudioPlayStream::fillData
void fillData(Arts::DataPacket< Arts::mcopbyte > *packet)
Definition kaudioplaystream.cpp:154
KAudioPlayStream::requestData
void requestData(TQByteArray &)
This signal is emitted when audio should be played.
KAudioPlayStream::stop
void stop()
Stops the stream.
Definition kaudioplaystream.cpp:128
KAudioPlayStream::start
void start(int samplingRate, int bits, int channels)
Start the stream.
Definition kaudioplaystream.cpp:105

arts

Skip menu "arts"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

arts

Skip menu "arts"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for arts by doxygen 1.15.0
This website is maintained by Timothy Pearson.