HulaLoop
Simple cross-platform audio loopback and recording.
HulaAudioSettings.h
1 #ifndef HL_AUDIO_SETTINGS_H
2 #define HL_AUDIO_SETTINGS_H
3 
4 #include <string>
5 
6 namespace hula
7 {
12  private:
16  static HulaAudioSettings *hlaudio_instance;
17 
18  bool showRecordDevices;
19 
20  int numberOfChannels;
21  int sampleRate;
22  int sampleSize;
23 
24  std::string defaultInputDeviceName;
25  std::string defaultOutputDeviceName;
26 
27  std::string outputFilePath;
28 
29  double delayTimer;
30  double recordDuration;
31 
32  protected:
34 
35  public:
37 
42  bool getShowRecordDevices();
43 
44  int getNumberOfChannels();
45  int getSampleRate();
46  int getSampleSize();
47 
52  void setShowRecordDevices(bool);
53 
54  void setNumberOfChannels(int);
55  void setSampleRate(int);
56  void setSampleSize(int);
57 
59  };
60 }
61 
62 #endif // END HL_AUDIO_SETTINGS_H
int getNumberOfChannels()
Get the number of channels for the current global device configuration.
Definition: HulaAudioSettings.cpp:58
void setSampleRate(int)
Set the number of channels for the current global device configuration.
Definition: HulaAudioSettings.cpp:121
void setShowRecordDevices(bool)
Setters.
Definition: HulaAudioSettings.cpp:95
int getSampleSize()
Get the sample size for the current global device configuration.
Definition: HulaAudioSettings.cpp:84
int getSampleRate()
Get the number of channels for the current global device configuration.
Definition: HulaAudioSettings.cpp:71
HulaAudioSettings()
Private constructor to enforce the singleton pattern.
Definition: HulaAudioSettings.cpp:12
void setSampleSize(int)
Set the sample size for the current global device configuration.
Definition: HulaAudioSettings.cpp:134
Wrapper around translation functions for Qt.
Definition: Controller.h:10
void setNumberOfChannels(int)
Set the number of channels for the current global device configuration.
Definition: HulaAudioSettings.cpp:108
bool getShowRecordDevices()
Getters.
Definition: HulaAudioSettings.cpp:45
static HulaAudioSettings * getInstance()
Retreive the singular instance of HulaSettings or construct a new one if none exists.
Definition: HulaAudioSettings.cpp:29
~HulaAudioSettings()
Destructor for HulaAudioSettings.
Definition: HulaAudioSettings.cpp:142
Class containing all settings pertinent to the audio module.
Definition: HulaAudioSettings.h:11