# HG changeset patch # User Chris Cannam # Date 1407753018 -3600 # Node ID ad14e7ed096da9f3819371e0ac49082b6b34d4fa # Parent 4b9fc70a37d512bdf0f2195d518c1d2dd06c91a3 Make sparse time-value layers inaudible by default (user must un-mute them) for compatibility with earlier versions diff -r 4b9fc70a37d5 -r ad14e7ed096d base/PlayParameterRepository.cpp --- 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())); diff -r 4b9fc70a37d5 -r ad14e7ed096d base/Playable.h --- 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 diff -r 4b9fc70a37d5 -r ad14e7ed096d data/model/SparseTimeValueModel.h --- 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.