comparison base/PlayParameterRepository.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
13 class PlayParameters; 13 class PlayParameters;
14 class Model; 14 class Model;
15 15
16 #include <map> 16 #include <map>
17 17
18 class PlayParameterRepository 18 #include <QObject>
19
20 class PlayParameterRepository : public QObject
19 { 21 {
22 Q_OBJECT
23
20 public: 24 public:
21 static PlayParameterRepository *instance(); 25 static PlayParameterRepository *instance();
22 26
23 virtual ~PlayParameterRepository(); 27 virtual ~PlayParameterRepository();
24 28
25 //!!! No way to remove a model! 29 //!!! No way to remove a model!
26 PlayParameters *getPlayParameters(const Model *model); 30 PlayParameters *getPlayParameters(const Model *model);
27 31
28 void clear(); 32 void clear();
29 33
34 signals:
35 void playParametersChanged(PlayParameters *);
36
37 protected slots:
38 void playParametersChanged();
39
30 protected: 40 protected:
31 std::map<const Model *, PlayParameters *> m_playParameters; 41 std::map<const Model *, PlayParameters *> m_playParameters;
32 42
33 static PlayParameterRepository *m_instance; 43 static PlayParameterRepository *m_instance;
34 }; 44 };