![]() |
HulaLoop
Simple cross-platform audio loopback and recording.
|
Singleton class containing all settings for the application. More...
#include <HulaSettings.h>


Public Member Functions | |
| void | setOutputFileEncoding (Encoding) |
| Set the output encoding for the current global configuration. More... | |
| Encoding | getOutputFileEncoding () |
| Get the output encoding for the current global configuration. More... | |
| QTranslator * | getTranslator () |
| Fetch a pointer to the translation object setup for Qt. More... | |
| bool | loadLanguage (QCoreApplication *app, const std::string &id) |
| Remove and delete the current translator, replacing it with a new translator of the specified language. More... | |
| ~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... | |
| 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... | |
| ~HulaAudioSettings () | |
| Destructor for HulaAudioSettings. | |
Static Public Member Functions | |
| static HulaSettings * | getInstance () |
| Retreive the singular instance of HulaSettings or construct a new one if none exists. More... | |
Static Public Member Functions inherited from hula::HulaAudioSettings | |
| static HulaAudioSettings * | getInstance () |
| 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... | |
Protected Attributes | |
| QTranslator * | trans |
Singleton class containing all settings for the application.
This includes audio specific settings.
|
protected |
Private constructor to enforce singleton pattern.
Initializes all settings to default values.
|
static |
Retreive the singular instance of HulaSettings or construct a new one if none exists.
| Encoding HulaSettings::getOutputFileEncoding | ( | ) |
Get the output encoding for the current global configuration.
This is the configuration that buffers and output files have been setup for. Changing it mid-anything may break stuff.
| QTranslator * HulaSettings::getTranslator | ( | ) |
Fetch a pointer to the translation object setup for Qt.
This translator can be loaded with different languages at runtime to suit the needs of the user.
| bool HulaSettings::loadLanguage | ( | QCoreApplication * | app, |
| const std::string & | id | ||
| ) |
Remove and delete the current translator, replacing it with a new translator of the specified language.
id should be formated as
| app | Reference to the targeted application. |
| id | Language code and country code of targeted file. |
| void HulaSettings::setOutputFileEncoding | ( | Encoding | val | ) |
Set the output encoding for the current global configuration.
This is the configuration that buffers and output files have been setup for. Changing it mid-anything may break stuff.
| val | Encoding enum value indicating current encoding type |
1.8.11