• 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 
30 class KArtsServer;
31 namespace Arts { class StereoEffectStack; }
32 
33 class KAudioPlayStreamPrivate;
34 
42 class KDE_ARTS_EXPORT KAudioPlayStream : public TQObject {
43  TQ_OBJECT
44 public:
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;
82 public slots:
89  void start( int samplingRate, int bits, int channels );
93  void stop();
94 
99  void write( TQByteArray& data );
100 signals:
105  void requestData( TQByteArray& );
106 
110  void running( bool );
111 
115  void noData();
116 public:
120  void fillData( Arts::DataPacket<Arts::mcopbyte> *packet );
121 private:
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
A wrapper around ByteSoundProducer/ByteStreamToAudio/Synth_AMAN_PLAY.
Definition: kaudioplaystream.h:42
KAudioPlayStream::noData
void noData()
Is emitted if the inputbuffer runs dry and polling os off.
KAudioPlayStream::running
void running(bool)
Is emitted when the state changes.
KAudioPlayStream::requestData
void requestData(TQByteArray &)
This signal is emitted when audio should be played.

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.9.1
This website is maintained by Timothy Pearson.