HulaLoop
Simple cross-platform audio loopback and recording.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
hula::HulaSettings Class Reference

Singleton class containing all settings for the application. More...

#include <HulaSettings.h>

Inheritance diagram for hula::HulaSettings:
Inheritance graph
[legend]
Collaboration diagram for hula::HulaSettings:
Collaboration graph
[legend]

Public Member Functions

 ~HulaSettings ()
 Destructor for HulaSettings.
 
- Public Member Functions inherited from hula::HulaAudioSettings
bool getShowRecordDevices ()
 Getters. More...
 
int getNumberOfChannels ()
 Get the number of channels for the current global device configuration. More...
 
int getSampleRate ()
 Get the number of channels for the current global device configuration. More...
 
int getSampleSize ()
 Get the sample size for the current global device configuration. More...
 
std::string getDefaultInputDeviceName ()
 Get the name of the device that should be initially selected for record. More...
 
std::string getDefaultOutputDeviceName ()
 Get the name of the device that should be initially selected for playback. More...
 
std::string getOutputFilePath ()
 Get the path of the output file specified at startup or during the file save routine. More...
 
Encoding getOutputFileEncoding ()
 Get the output encoding for the current global configuration. More...
 
double getDelayTimer ()
 Get the length of the delay timer in seconds. More...
 
double getRecordDuration ()
 Get the length of the record in seconds. More...
 
void setShowRecordDevices (bool)
 Setters. More...
 
void setNumberOfChannels (int)
 Set the number of channels for the current global device configuration. More...
 
void setSampleRate (int)
 Set the number of channels for the current global device configuration. More...
 
void setSampleSize (int)
 Set the sample size for the current global device configuration. More...
 
void setDefaultInputDeviceName (std::string)
 Set the name of the device that should be initially selected for record. More...
 
void setDefaultOutputDeviceName (std::string)
 Set the name of the device that should be initially selected for playback. More...
 
void setOutputFilePath (std::string)
 Set the path of the output file specified at startup or during the file save routine. More...
 
void setOutputFileEncoding (Encoding)
 Set the output encoding for the current global configuration. More...
 
void setDelayTimer (double)
 Set the length of the delay timer in seconds. More...
 
void setRecordDuration (double)
 Get the length of the record in seconds. More...
 
 ~HulaAudioSettings ()
 Destructor for HulaAudioSettings.
 

Static Public Member Functions

static HulaSettingsgetInstance ()
 Retreive the singular instance of HulaSettings or construct a new one if none exists. More...
 
- Static Public Member Functions inherited from hula::HulaAudioSettings
static HulaAudioSettingsgetInstance ()
 Retreive the singular instance of HulaSettings or construct a new one if none exists. More...
 

Protected Member Functions

 HulaSettings ()
 Private constructor to enforce singleton pattern. More...
 
- Protected Member Functions inherited from hula::HulaAudioSettings
 HulaAudioSettings ()
 Private constructor to enforce the singleton pattern. More...
 

Detailed Description

Singleton class containing all settings for the application.

This includes audio specific settings.

Constructor & Destructor Documentation

HulaSettings::HulaSettings ( )
protected

Private constructor to enforce singleton pattern.

Initializes all settings to default values.

Member Function Documentation

HulaSettings * HulaSettings::getInstance ( )
static

Retreive the singular instance of HulaSettings or construct a new one if none exists.

Returns
Pointer to the HulaAudioSettings instance.

The documentation for this class was generated from the following files: