comparison base/PlayParameters.h @ 0:da6937383da8

initial import
author Chris Cannam
date Tue, 10 Jan 2006 16:33:16 +0000
parents
children d86891498eef
comparison
equal deleted inserted replaced
-1:000000000000 0:da6937383da8
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 _PLAYABLE_H_
11 #define _PLAYABLE_H_
12
13 #include <QObject>
14
15 class PlayParameters : virtual public QObject
16 {
17 Q_OBJECT
18
19 public:
20 PlayParameters() : m_playMuted(false), m_playPan(0.0), m_playGain(1.0) { }
21
22 virtual bool isPlayMuted() const { return m_playMuted; }
23 virtual void setPlayMuted(bool muted);
24
25 virtual float getPlayPan() const { return m_playPan; } // -1.0 -> 1.0
26 virtual void setPlayPan(float pan);
27
28 virtual float getPlayGain() const { return m_playGain; }
29 virtual void setPlayGain(float gain);
30
31 signals:
32 void playParametersChanged();
33
34 protected:
35 bool m_playMuted;
36 float m_playPan;
37 float m_playGain;
38 };
39
40 #endif
41
42
43
44