| 1 |
// Part of SAASound copyright 2020 Dave Hooper <[email protected]> |
| 2 |
// |
| 3 |
// SAAConfig.h: configuration file handler class |
| 4 |
// |
| 5 |
////////////////////////////////////////////////////////////////////// |
| 6 |
|
| 7 |
#include "defns.h" |
| 8 |
#ifdef USE_CONFIG_FILE |
| 9 |
|
| 10 |
#ifndef SAA_CONFIG_H_INCLUDED |
| 11 |
#define SAA_CONFIG_H_INCLUDED |
| 12 |
|
| 13 |
#define INI_READONLY |
| 14 |
#define INI_ANSIONLY /*nb not really 'ANSI', this just forces all read/write to use 8-bit char*/ |
| 15 |
#include "minIni/minIni.h" |
| 16 |
|
| 17 |
class SAAConfig |
| 18 |
{ |
| 19 |
private: |
| 20 |
minIni m_minIni; |
| 21 |
bool m_bHasReadConfig; |
| 22 |
|
| 23 |
public: |
| 24 |
bool m_bGenerateRegisterLogs; |
| 25 |
bool m_bGeneratePcmLogs; |
| 26 |
bool m_bGeneratePcmSeparateChannels; |
| 27 |
t_string m_strRegisterLogPath; |
| 28 |
t_string m_strPcmOutputPath; |
| 29 |
unsigned int m_nOversample; |
| 30 |
bool m_bHighpass; |
| 31 |
double m_nBoost; |
| 32 |
|
| 33 |
SAAConfig(); |
| 34 |
void ReadConfig(); |
| 35 |
|
| 36 |
t_string getChannelPcmOutputPath(int); |
| 37 |
}; |
| 38 |
|
| 39 |
#endif // SAA_CONFIG_H_INCLUDED |
| 40 |
|
| 41 |
#endif // USE_CONFIG_FILE |