Mercurial > hg > svcore
comparison base/Preferences.h @ 1365:3382d914e110
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Fri, 13 Jan 2017 10:29:44 +0000 |
parents | ea28ee929034 |
children | 07f23b90701a |
comparison
equal
deleted
inserted
replaced
1272:6a7ea3bd0e10 | 1365:3382d914e110 |
---|---|
49 | 49 |
50 SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; } | 50 SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; } |
51 SpectrogramXSmoothing getSpectrogramXSmoothing() const { return m_spectrogramXSmoothing; } | 51 SpectrogramXSmoothing getSpectrogramXSmoothing() const { return m_spectrogramXSmoothing; } |
52 double getTuningFrequency() const { return m_tuningFrequency; } | 52 double getTuningFrequency() const { return m_tuningFrequency; } |
53 WindowType getWindowType() const { return m_windowType; } | 53 WindowType getWindowType() const { return m_windowType; } |
54 int getResampleQuality() const { return m_resampleQuality; } | |
55 | 54 |
55 bool getRunPluginsInProcess() const { return m_runPluginsInProcess; } | |
56 | |
56 //!!! harmonise with PaneStack | 57 //!!! harmonise with PaneStack |
57 enum PropertyBoxLayout { | 58 enum PropertyBoxLayout { |
58 VerticallyStacked, | 59 VerticallyStacked, |
59 Layered | 60 Layered |
60 }; | 61 }; |
68 | 69 |
69 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0 | 70 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0 |
70 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; } | 71 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; } |
71 | 72 |
72 /// True if we should resample second or subsequent audio file to match first audio file's rate | 73 /// True if we should resample second or subsequent audio file to match first audio file's rate |
73 bool getResampleOnLoad() const { return m_resampleOnLoad; } | 74 bool getResampleOnLoad() const { return m_resampleOnLoad; } |
75 | |
76 /// True if mp3 files should be loaded "gaplessly", i.e. compensating for encoder/decoder delay and padding | |
77 bool getUseGaplessMode() const { return m_gapless; } | |
74 | 78 |
75 /// True if audio files should be loaded with normalisation (max == 1) | 79 /// True if audio files should be loaded with normalisation (max == 1) |
76 bool getNormaliseAudio() const { return m_normaliseAudio; } | 80 bool getNormaliseAudio() const { return m_normaliseAudio; } |
77 | 81 |
78 enum BackgroundMode { | 82 enum BackgroundMode { |
111 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); | 115 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); |
112 void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing); | 116 void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing); |
113 void setTuningFrequency(double freq); | 117 void setTuningFrequency(double freq); |
114 void setPropertyBoxLayout(PropertyBoxLayout layout); | 118 void setPropertyBoxLayout(PropertyBoxLayout layout); |
115 void setWindowType(WindowType type); | 119 void setWindowType(WindowType type); |
116 void setResampleQuality(int quality); | 120 void setRunPluginsInProcess(bool r); |
117 void setOmitTempsFromRecentFiles(bool omit); | 121 void setOmitTempsFromRecentFiles(bool omit); |
118 void setTemporaryDirectoryRoot(QString tempDirRoot); | 122 void setTemporaryDirectoryRoot(QString tempDirRoot); |
119 void setFixedSampleRate(sv_samplerate_t); | 123 void setFixedSampleRate(sv_samplerate_t); |
120 void setResampleOnLoad(bool); | 124 void setResampleOnLoad(bool); |
125 void setUseGaplessMode(bool); | |
121 void setNormaliseAudio(bool); | 126 void setNormaliseAudio(bool); |
122 void setBackgroundMode(BackgroundMode mode); | 127 void setBackgroundMode(BackgroundMode mode); |
123 void setTimeToTextMode(TimeToTextMode mode); | 128 void setTimeToTextMode(TimeToTextMode mode); |
124 void setShowHMS(bool show); | 129 void setShowHMS(bool show); |
125 void setOctaveOfMiddleC(int oct); | 130 void setOctaveOfMiddleC(int oct); |
148 SpectrogramSmoothing m_spectrogramSmoothing; | 153 SpectrogramSmoothing m_spectrogramSmoothing; |
149 SpectrogramXSmoothing m_spectrogramXSmoothing; | 154 SpectrogramXSmoothing m_spectrogramXSmoothing; |
150 double m_tuningFrequency; | 155 double m_tuningFrequency; |
151 PropertyBoxLayout m_propertyBoxLayout; | 156 PropertyBoxLayout m_propertyBoxLayout; |
152 WindowType m_windowType; | 157 WindowType m_windowType; |
153 int m_resampleQuality; | 158 bool m_runPluginsInProcess; |
154 bool m_omitRecentTemps; | 159 bool m_omitRecentTemps; |
155 QString m_tempDirRoot; | 160 QString m_tempDirRoot; |
156 sv_samplerate_t m_fixedSampleRate; | 161 sv_samplerate_t m_fixedSampleRate; |
157 bool m_resampleOnLoad; | 162 bool m_resampleOnLoad; |
163 bool m_gapless; | |
158 bool m_normaliseAudio; | 164 bool m_normaliseAudio; |
159 int m_viewFontSize; | 165 int m_viewFontSize; |
160 BackgroundMode m_backgroundMode; | 166 BackgroundMode m_backgroundMode; |
161 TimeToTextMode m_timeToTextMode; | 167 TimeToTextMode m_timeToTextMode; |
162 bool m_showHMS; | 168 bool m_showHMS; |