Mercurial > hg > svcore
diff base/Preferences.h @ 1868:44dba7cd9ec3
Add record-mono preference
author | Chris Cannam |
---|---|
date | Tue, 16 Jun 2020 15:15:57 +0100 |
parents | ad5f892c0c4d |
children |
line wrap: on
line diff
--- a/base/Preferences.h Thu Jun 11 14:09:59 2020 +0100 +++ b/base/Preferences.h Tue Jun 16 15:15:57 2020 +0100 @@ -65,6 +65,10 @@ QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } + /// True if we should always mix down recorded audio to a single + /// channel regardless of how many channels the device opens + bool getRecordMono() const { return m_recordMono; } + /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0 sv_samplerate_t getFixedSampleRate() const { return m_fixedSampleRate; } @@ -119,6 +123,7 @@ void setOmitTempsFromRecentFiles(bool omit); void setTemporaryDirectoryRoot(QString tempDirRoot); void setFixedSampleRate(sv_samplerate_t); + void setRecordMono(bool); void setResampleOnLoad(bool); void setUseGaplessMode(bool); void setNormaliseAudio(bool); @@ -157,6 +162,7 @@ bool m_omitRecentTemps; QString m_tempDirRoot; sv_samplerate_t m_fixedSampleRate; + bool m_recordMono; bool m_resampleOnLoad; bool m_gapless; bool m_normaliseAudio;