Mercurial > hg > svcore
changeset 952:ad14e7ed096d
Make sparse time-value layers inaudible by default (user must un-mute them) for compatibility with earlier versions
author | Chris Cannam |
---|---|
date | Mon, 11 Aug 2014 11:30:18 +0100 |
parents | 4b9fc70a37d5 |
children | f5810f1270ae |
files | base/PlayParameterRepository.cpp base/Playable.h data/model/SparseTimeValueModel.h |
diffstat | 3 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/base/PlayParameterRepository.cpp Fri Jul 25 17:02:44 2014 +0100 +++ b/base/PlayParameterRepository.cpp Mon Aug 11 11:30:18 2014 +0100 @@ -49,6 +49,9 @@ params->setPlayClipId (playable->getDefaultPlayClipId()); + + params->setPlayAudible + (playable->getDefaultPlayAudible()); connect(params, SIGNAL(playParametersChanged()), this, SLOT(playParametersChanged()));
--- a/base/Playable.h Fri Jul 25 17:02:44 2014 +0100 +++ b/base/Playable.h Mon Aug 11 11:30:18 2014 +0100 @@ -25,6 +25,7 @@ virtual bool canPlay() const { return false; } virtual QString getDefaultPlayClipId() const { return ""; } + virtual bool getDefaultPlayAudible() const { return true; } }; #endif
--- a/data/model/SparseTimeValueModel.h Fri Jul 25 17:02:44 2014 +0100 +++ b/data/model/SparseTimeValueModel.h Mon Aug 11 11:30:18 2014 +0100 @@ -111,6 +111,7 @@ QString getTypeName() const { return tr("Sparse Time-Value"); } virtual bool canPlay() const { return true; } + virtual bool getDefaultPlayAudible() const { return false; } // user must unmute /** * TabularModel methods.