Mercurial > hg > svcore
diff base/Preferences.h @ 921:2896b8872834 tonioni
Add normalise preference and take it into account in WaveFileModel
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2014 16:12:00 +0100 |
parents | 4c7b4040bd2d |
children | 344c9ea90181 |
line wrap: on
line diff
--- a/base/Preferences.h Fri Jun 13 16:03:48 2014 +0100 +++ b/base/Preferences.h Fri Jun 13 16:12:00 2014 +0100 @@ -72,6 +72,9 @@ /// True if we should resample second or subsequent audio file to match first audio file's rate bool getResampleOnLoad() const { return m_resampleOnLoad; } + /// True if audio files should be loaded with normalisation (max == 1) + bool getNormaliseAudio() const { return m_normaliseAudio; } + enum BackgroundMode { BackgroundFromTheme, DarkBackground, @@ -113,6 +116,7 @@ void setTemporaryDirectoryRoot(QString tempDirRoot); void setFixedSampleRate(int); void setResampleOnLoad(bool); + void setNormaliseAudio(bool); void setBackgroundMode(BackgroundMode mode); void setTimeToTextMode(TimeToTextMode mode); void setOctaveOfMiddleC(int oct); @@ -148,6 +152,7 @@ QString m_tempDirRoot; int m_fixedSampleRate; bool m_resampleOnLoad; + bool m_normaliseAudio; int m_viewFontSize; BackgroundMode m_backgroundMode; TimeToTextMode m_timeToTextMode;