comparison base/Preferences.h @ 1313:ff9697592bef 3.0-integration

Add gapless preference to prefs dialog; much work on audio read tests
author Chris Cannam
date Thu, 01 Dec 2016 17:45:40 +0000
parents ba16388b937d
children ea28ee929034
comparison
equal deleted inserted replaced
1312:079e553dc16e 1313:ff9697592bef
70 70
71 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0 71 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0
72 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; } 72 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; }
73 73
74 /// True if we should resample second or subsequent audio file to match first audio file's rate 74 /// True if we should resample second or subsequent audio file to match first audio file's rate
75 bool getResampleOnLoad() const { return m_resampleOnLoad; } 75 bool getResampleOnLoad() const { return m_resampleOnLoad; }
76
77 /// True if mp3 files should be loaded "gaplessly", i.e. compensating for encoder/decoder delay and padding
78 bool getUseGaplessMode() const { return m_gapless; }
76 79
77 /// True if audio files should be loaded with normalisation (max == 1) 80 /// True if audio files should be loaded with normalisation (max == 1)
78 bool getNormaliseAudio() const { return m_normaliseAudio; } 81 bool getNormaliseAudio() const { return m_normaliseAudio; }
79 82
80 enum BackgroundMode { 83 enum BackgroundMode {
119 void setRunPluginsInProcess(bool r); 122 void setRunPluginsInProcess(bool r);
120 void setOmitTempsFromRecentFiles(bool omit); 123 void setOmitTempsFromRecentFiles(bool omit);
121 void setTemporaryDirectoryRoot(QString tempDirRoot); 124 void setTemporaryDirectoryRoot(QString tempDirRoot);
122 void setFixedSampleRate(sv_samplerate_t); 125 void setFixedSampleRate(sv_samplerate_t);
123 void setResampleOnLoad(bool); 126 void setResampleOnLoad(bool);
127 void setUseGaplessMode(bool);
124 void setNormaliseAudio(bool); 128 void setNormaliseAudio(bool);
125 void setBackgroundMode(BackgroundMode mode); 129 void setBackgroundMode(BackgroundMode mode);
126 void setTimeToTextMode(TimeToTextMode mode); 130 void setTimeToTextMode(TimeToTextMode mode);
127 void setShowHMS(bool show); 131 void setShowHMS(bool show);
128 void setOctaveOfMiddleC(int oct); 132 void setOctaveOfMiddleC(int oct);
157 bool m_runPluginsInProcess; 161 bool m_runPluginsInProcess;
158 bool m_omitRecentTemps; 162 bool m_omitRecentTemps;
159 QString m_tempDirRoot; 163 QString m_tempDirRoot;
160 sv_samplerate_t m_fixedSampleRate; 164 sv_samplerate_t m_fixedSampleRate;
161 bool m_resampleOnLoad; 165 bool m_resampleOnLoad;
166 bool m_gapless;
162 bool m_normaliseAudio; 167 bool m_normaliseAudio;
163 int m_viewFontSize; 168 int m_viewFontSize;
164 BackgroundMode m_backgroundMode; 169 BackgroundMode m_backgroundMode;
165 TimeToTextMode m_timeToTextMode; 170 TimeToTextMode m_timeToTextMode;
166 bool m_showHMS; 171 bool m_showHMS;