Mercurial > hg > svcore
comparison base/PlayParameters.h @ 29:8460b3bf8f04
* Implement play mute, level and pan controls and a layer visibility control
* Handle swapping the buffers in AudioCallbackPlaySource more gracefully, so
that in many cases it can be done inaudibly. Still gets it wrong when
playing in a noncontiguous selection.
* Fix to SV file save for non-2d sparse models
* Fixes to LED button drawing and AudioDial mouse functionality
* Add progress bar for Ogg file import
* Reshuffle PropertyContainer and its subclasses so it can be a QObject
* Add layer dormancy (invisible layer permitted to free its cache space)
* Optimisations to SpectrogramLayer, removing locks when reading/writing
individual pixels in the cache (should be unnecessary there) -- there's
still an issue here as we need a lock when reading from the model in
case the model is replaced, and we don't currently have one
* Several munlock() calls to make it harder to exhaust real memory if
running in an RT mode with mlockall() active
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:04:26 +0000 |
parents | 4b16526b011b |
children | a6ef94ecbe74 |
comparison
equal
deleted
inserted
replaced
28:4b16526b011b | 29:8460b3bf8f04 |
---|---|
10 #ifndef _PLAY_PARAMETERS_H_ | 10 #ifndef _PLAY_PARAMETERS_H_ |
11 #define _PLAY_PARAMETERS_H_ | 11 #define _PLAY_PARAMETERS_H_ |
12 | 12 |
13 #include <QObject> | 13 #include <QObject> |
14 | 14 |
15 class PlayParameters : virtual public QObject | 15 class PlayParameters : public QObject |
16 { | 16 { |
17 Q_OBJECT | 17 Q_OBJECT |
18 | 18 |
19 public: | 19 public: |
20 PlayParameters() : m_playMuted(false), m_playPan(0.0), m_playGain(1.0) { } | 20 PlayParameters() : m_playMuted(false), m_playPan(0.0), m_playGain(1.0) { } |
21 | 21 |
22 virtual bool isPlayMuted() const { return m_playMuted; } | 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 | 23 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; } | 24 virtual float getPlayGain() const { return m_playGain; } |
29 virtual void setPlayGain(float gain); | |
30 | 25 |
31 signals: | 26 signals: |
32 void playParametersChanged(); | 27 void playParametersChanged(); |
28 void playMutedChanged(bool); | |
29 void playPanChanged(float); | |
30 void playGainChanged(float); | |
31 | |
32 public slots: | |
33 virtual void setPlayMuted(bool muted); | |
34 virtual void setPlayAudible(bool nonMuted); | |
35 virtual void setPlayPan(float pan); | |
36 virtual void setPlayGain(float gain); | |
33 | 37 |
34 protected: | 38 protected: |
35 bool m_playMuted; | 39 bool m_playMuted; |
36 float m_playPan; | 40 float m_playPan; |
37 float m_playGain; | 41 float m_playGain; |