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

arts

  • arts
  • kde
kaudiorecordstream.h
1 /*
2
3 Copyright (C) 2001,2002 Matthias Kretz
4 kretz@kde.org
5 2003 Arnold Krille
6 arnold@arnoldarts.de
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
22
23 */
24
25#ifndef _KAUDIORECORDSTREAM__H
26#define _KAUDIORECORDSTREAM__H
27
28#include <tqobject.h>
29
30#include <tdelibs_export.h>
31
32class KArtsServer;
33namespace Arts { class StereoEffectStack; }
34
41class KDE_ARTS_EXPORT KAudioRecordStream : public TQObject
42{
43 TQ_OBJECT
44
45 public:
54 KAudioRecordStream( KArtsServer * server, const TQString & title, TQObject * parent = 0, const char * name = 0 );
55
56 ~KAudioRecordStream();
57
66 int read( char *, int size );
67
74 void setBlockingIO( bool );
75
81 bool blockingIO() const;
82
91 void usePolling( bool );
92
98 bool polling() const;
99
103 Arts::StereoEffectStack effectStack() const;
104
109 bool running() const;
110
111 public slots:
116 void stop();
117
130 void start( int samplingRate, int bits, int channels );
131
135 void flush();
136
137 signals:
145 void data( TQByteArray & data );
146
151 void running( bool );
152
153 private slots:
154 void slotRestartedServer();
155 void slotData( const char *, unsigned int );
156
157 private:
158 KAudioRecordStream( const KAudioRecordStream & );
159 KAudioRecordStream & operator=( const KAudioRecordStream & );
160
161 struct Data;
162 Data * d;
163};
164
165#endif //_KAUDIORECORDSTREAM__H
KArtsServer
KArtsServer is a wrapper to conveniently get a reference to a SoundServer, and restart artsd when nec...
Definition: kartsserver.h:38
KAudioRecordStream
A KDE wrapper around Synth_AMAN_RECORD/AudioToByteStream/ByteSoundReceiver.
Definition: kaudiorecordstream.h:42
KAudioRecordStream::running
void running(bool)
Wether this RecordStream is recording or not.
KAudioRecordStream::data
void data(TQByteArray &data)
Data from the aRts server has arrived.
flush
kndbgstream & flush(kndbgstream &s)

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