Mercurial > hg > svcore
comparison base/Preferences.h @ 1868:44dba7cd9ec3
Add record-mono preference
author | Chris Cannam |
---|---|
date | Tue, 16 Jun 2020 15:15:57 +0100 |
parents | ad5f892c0c4d |
children |
comparison
equal
deleted
inserted
replaced
1867:2654bf447a84 | 1868:44dba7cd9ec3 |
---|---|
63 | 63 |
64 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } | 64 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } |
65 | 65 |
66 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } | 66 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } |
67 | 67 |
68 /// True if we should always mix down recorded audio to a single | |
69 /// channel regardless of how many channels the device opens | |
70 bool getRecordMono() const { return m_recordMono; } | |
71 | |
68 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0 | 72 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0 |
69 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; } | 73 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; } |
70 | 74 |
71 /// True if we should resample second or subsequent audio file to match first audio file's rate | 75 /// True if we should resample second or subsequent audio file to match first audio file's rate |
72 bool getResampleOnLoad() const { return m_resampleOnLoad; } | 76 bool getResampleOnLoad() const { return m_resampleOnLoad; } |
117 void setWindowType(WindowType type); | 121 void setWindowType(WindowType type); |
118 void setRunPluginsInProcess(bool r); | 122 void setRunPluginsInProcess(bool r); |
119 void setOmitTempsFromRecentFiles(bool omit); | 123 void setOmitTempsFromRecentFiles(bool omit); |
120 void setTemporaryDirectoryRoot(QString tempDirRoot); | 124 void setTemporaryDirectoryRoot(QString tempDirRoot); |
121 void setFixedSampleRate(sv_samplerate_t); | 125 void setFixedSampleRate(sv_samplerate_t); |
126 void setRecordMono(bool); | |
122 void setResampleOnLoad(bool); | 127 void setResampleOnLoad(bool); |
123 void setUseGaplessMode(bool); | 128 void setUseGaplessMode(bool); |
124 void setNormaliseAudio(bool); | 129 void setNormaliseAudio(bool); |
125 void setBackgroundMode(BackgroundMode mode); | 130 void setBackgroundMode(BackgroundMode mode); |
126 void setTimeToTextMode(TimeToTextMode mode); | 131 void setTimeToTextMode(TimeToTextMode mode); |
155 WindowType m_windowType; | 160 WindowType m_windowType; |
156 bool m_runPluginsInProcess; | 161 bool m_runPluginsInProcess; |
157 bool m_omitRecentTemps; | 162 bool m_omitRecentTemps; |
158 QString m_tempDirRoot; | 163 QString m_tempDirRoot; |
159 sv_samplerate_t m_fixedSampleRate; | 164 sv_samplerate_t m_fixedSampleRate; |
165 bool m_recordMono; | |
160 bool m_resampleOnLoad; | 166 bool m_resampleOnLoad; |
161 bool m_gapless; | 167 bool m_gapless; |
162 bool m_normaliseAudio; | 168 bool m_normaliseAudio; |
163 int m_viewFontSize; | 169 int m_viewFontSize; |
164 BackgroundMode m_backgroundMode; | 170 BackgroundMode m_backgroundMode; |