annotate 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
rev   line source
Chris@28 1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
Chris@28 2
Chris@28 3 /*
Chris@28 4 A waveform viewer and audio annotation editor.
Chris@28 5 Chris Cannam, Queen Mary University of London, 2005-2006
Chris@28 6
Chris@28 7 This is experimental software. Not for distribution.
Chris@28 8 */
Chris@28 9
Chris@28 10 #ifndef _PLAY_PARAMETER_REPOSITORY_H_
Chris@28 11 #define _PLAY_PARAMETER_REPOSITORY_H_
Chris@28 12
Chris@28 13 class PlayParameters;
Chris@28 14 class Model;
Chris@28 15
Chris@28 16 #include <map>
Chris@28 17
Chris@29 18 #include <QObject>
Chris@29 19
Chris@29 20 class PlayParameterRepository : public QObject
Chris@28 21 {
Chris@29 22 Q_OBJECT
Chris@29 23
Chris@28 24 public:
Chris@28 25 static PlayParameterRepository *instance();
Chris@28 26
Chris@28 27 virtual ~PlayParameterRepository();
Chris@28 28
Chris@28 29 //!!! No way to remove a model!
Chris@28 30 PlayParameters *getPlayParameters(const Model *model);
Chris@28 31
Chris@28 32 void clear();
Chris@28 33
Chris@29 34 signals:
Chris@29 35 void playParametersChanged(PlayParameters *);
Chris@29 36
Chris@29 37 protected slots:
Chris@29 38 void playParametersChanged();
Chris@29 39
Chris@28 40 protected:
Chris@28 41 std::map<const Model *, PlayParameters *> m_playParameters;
Chris@28 42
Chris@28 43 static PlayParameterRepository *m_instance;
Chris@28 44 };
Chris@28 45
Chris@28 46 #endif