Mercurial > hg > svcore
annotate base/PlayParameters.h @ 30:a6ef94ecbe74
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 8460b3bf8f04 |
children | 39ae3dee27b9 |
rev | line source |
---|---|
Chris@0 | 1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@0 | 2 |
Chris@0 | 3 /* |
Chris@0 | 4 A waveform viewer and audio annotation editor. |
Chris@2 | 5 Chris Cannam, Queen Mary University of London, 2005-2006 |
Chris@0 | 6 |
Chris@0 | 7 This is experimental software. Not for distribution. |
Chris@0 | 8 */ |
Chris@0 | 9 |
Chris@28 | 10 #ifndef _PLAY_PARAMETERS_H_ |
Chris@28 | 11 #define _PLAY_PARAMETERS_H_ |
Chris@0 | 12 |
Chris@0 | 13 #include <QObject> |
Chris@0 | 14 |
Chris@29 | 15 class PlayParameters : public QObject |
Chris@0 | 16 { |
Chris@0 | 17 Q_OBJECT |
Chris@0 | 18 |
Chris@0 | 19 public: |
Chris@0 | 20 PlayParameters() : m_playMuted(false), m_playPan(0.0), m_playGain(1.0) { } |
Chris@0 | 21 |
Chris@0 | 22 virtual bool isPlayMuted() const { return m_playMuted; } |
Chris@0 | 23 virtual float getPlayPan() const { return m_playPan; } // -1.0 -> 1.0 |
Chris@0 | 24 virtual float getPlayGain() const { return m_playGain; } |
Chris@0 | 25 |
Chris@29 | 26 public slots: |
Chris@29 | 27 virtual void setPlayMuted(bool muted); |
Chris@29 | 28 virtual void setPlayAudible(bool nonMuted); |
Chris@29 | 29 virtual void setPlayPan(float pan); |
Chris@29 | 30 virtual void setPlayGain(float gain); |
Chris@0 | 31 |
Chris@30 | 32 signals: |
Chris@30 | 33 void playParametersChanged(); |
Chris@30 | 34 void playMutedChanged(bool); |
Chris@30 | 35 void playAudibleChanged(bool); |
Chris@30 | 36 void playPanChanged(float); |
Chris@30 | 37 void playGainChanged(float); |
Chris@30 | 38 |
Chris@0 | 39 protected: |
Chris@0 | 40 bool m_playMuted; |
Chris@0 | 41 float m_playPan; |
Chris@0 | 42 float m_playGain; |
Chris@0 | 43 }; |
Chris@0 | 44 |
Chris@0 | 45 #endif |
Chris@0 | 46 |
Chris@0 | 47 |
Chris@0 | 48 |
Chris@0 | 49 |