comparison audioio/AudioCallbackPlayTarget.h @ 0:db6fcbd4405c

initial import
author Chris Cannam
date Tue, 10 Jan 2006 16:33:16 +0000
parents
children 97c69acdcb82
comparison
equal deleted inserted replaced
-1:000000000000 0:db6fcbd4405c
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005
6
7 This is experimental software. Not for distribution.
8 */
9
10 #ifndef _AUDIO_CALLBACK_PLAY_TARGET_H_
11 #define _AUDIO_CALLBACK_PLAY_TARGET_H_
12
13 #include <QObject>
14
15 class AudioCallbackPlaySource;
16
17 class AudioCallbackPlayTarget : public QObject
18 {
19 Q_OBJECT
20
21 public:
22 AudioCallbackPlayTarget(AudioCallbackPlaySource *source);
23 virtual ~AudioCallbackPlayTarget();
24
25 virtual bool isOK() const = 0;
26
27 float getOutputGain() const {
28 return m_outputGain;
29 }
30
31 public slots:
32 /**
33 * Set the playback gain (0.0 = silence, 1.0 = levels unmodified)
34 */
35 virtual void setOutputGain(float gain);
36
37 virtual void sourceModelReplaced() = 0;
38
39 protected:
40 AudioCallbackPlaySource *m_source;
41 float m_outputGain;
42 };
43
44 #endif
45