comparison base/Preferences.h @ 919:4c7b4040bd2d tonioni

For Tony, resample all audio to 44100 on load
author Chris Cannam
date Fri, 13 Jun 2014 12:56:31 +0100
parents 451f7f3ab6e7
children 2896b8872834
comparison
equal deleted inserted replaced
918:e88a15c25a4a 919:4c7b4040bd2d
64 64
65 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } 65 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; }
66 66
67 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } 67 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; }
68 68
69 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0
70 int getFixedSampleRate() const { return m_fixedSampleRate; }
71
72 /// True if we should resample second or subsequent audio file to match first audio file's rate
69 bool getResampleOnLoad() const { return m_resampleOnLoad; } 73 bool getResampleOnLoad() const { return m_resampleOnLoad; }
70 74
71 enum BackgroundMode { 75 enum BackgroundMode {
72 BackgroundFromTheme, 76 BackgroundFromTheme,
73 DarkBackground, 77 DarkBackground,
105 void setPropertyBoxLayout(PropertyBoxLayout layout); 109 void setPropertyBoxLayout(PropertyBoxLayout layout);
106 void setWindowType(WindowType type); 110 void setWindowType(WindowType type);
107 void setResampleQuality(int quality); 111 void setResampleQuality(int quality);
108 void setOmitTempsFromRecentFiles(bool omit); 112 void setOmitTempsFromRecentFiles(bool omit);
109 void setTemporaryDirectoryRoot(QString tempDirRoot); 113 void setTemporaryDirectoryRoot(QString tempDirRoot);
114 void setFixedSampleRate(int);
110 void setResampleOnLoad(bool); 115 void setResampleOnLoad(bool);
111 void setBackgroundMode(BackgroundMode mode); 116 void setBackgroundMode(BackgroundMode mode);
112 void setTimeToTextMode(TimeToTextMode mode); 117 void setTimeToTextMode(TimeToTextMode mode);
113 void setOctaveOfMiddleC(int oct); 118 void setOctaveOfMiddleC(int oct);
114 void setViewFontSize(int size); 119 void setViewFontSize(int size);
139 PropertyBoxLayout m_propertyBoxLayout; 144 PropertyBoxLayout m_propertyBoxLayout;
140 WindowType m_windowType; 145 WindowType m_windowType;
141 int m_resampleQuality; 146 int m_resampleQuality;
142 bool m_omitRecentTemps; 147 bool m_omitRecentTemps;
143 QString m_tempDirRoot; 148 QString m_tempDirRoot;
149 int m_fixedSampleRate;
144 bool m_resampleOnLoad; 150 bool m_resampleOnLoad;
145 int m_viewFontSize; 151 int m_viewFontSize;
146 BackgroundMode m_backgroundMode; 152 BackgroundMode m_backgroundMode;
147 TimeToTextMode m_timeToTextMode; 153 TimeToTextMode m_timeToTextMode;
148 int m_octave; 154 int m_octave;