![]() |
VR-Forces 4.10 Class Documentation
|
Rooted singleton that holds value about current state of sound settings. More...

Public Member Functions | |
| virtual | ~DtAudioSettingsManager () |
| Virtual DTOR. More... | |
Controls for the sound settings. | |
| virtual void | setAudioEnabled (bool val) |
| Set the master audio enabled state. More... | |
| virtual bool | audioEnabled () const |
| Get the master audio enabled state. More... | |
| virtual void | setVolume (double val) |
| Set the master audio volume. More... | |
| virtual double | volume () const |
| Get the master audio volume. More... | |
| virtual void | setAudioPlaybackDevice (const std::string &val) |
| Set the device that audio should be played back on. More... | |
| virtual std::string | audioPlaybackDevice () const |
| get the name of the device that the audio should be played back on More... | |
| virtual void | setAudioCaptureDevice (const std::string &val) |
| Set the device that audio should be captured from. More... | |
| virtual std::string | audioCaptureDevice () const |
| get the name of the device that the audio should be captured from More... | |
| virtual void | setShowCaptureDeviceSettings (bool val) |
| Set whether or not the capture device selection dialog is present in the audio settings dialog. More... | |
| virtual bool | showCaptureDeviceSettings () const |
| Get whether or not the capture device selection dialog is present in the audio settings dialog. More... | |
| virtual void | setSpeedOfSound (double val) |
| Set the speed of sound (in meters/second). More... | |
| virtual double | speedOfSound () const |
| Get the speed of sound (in meters/second). More... | |
| virtual void | setMaxVoices (int val) |
| Set the maximum number of simultaneous playing sounds. More... | |
| virtual int | maxVoices () const |
| Get the number of maximum voices. More... | |
| virtual void | setMaximumOutputDecibelCapability (double val) |
| Set the maximum loudness that the sound hardware that this application is playing on is capable of producing. More... | |
| virtual double | maximumOutputDecibelCapability () const |
| Get the maximum loudness that the sound system can generate. More... | |
| virtual void | setEnvironmentalProcessingEnabled (bool val) |
| Set the environmental processing enabled state. More... | |
| virtual bool | environmentalProcessingEnabled () const |
| Get the environmental processing enabled state. More... | |
Setting Persistence Methods | |
| void | setFromRecord (const DtAudioSettingsRecord &rec) |
| Set the current settings' state from the given record. More... | |
| void | getRecord (DtAudioSettingsRecord &rec) const |
| Store the current settings' state in the given record. More... | |
Public Member Functions inherited from makVrv::DtBaseSettingsManager< DtAudioSettingsRecord > | |
| DtBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR. More... | |
| virtual | ~DtBaseSettingsManager () |
| Virtual DTOR. More... | |
| virtual void | initializeBackup () |
| Creates a backup of the settings' current state. More... | |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< DtAudioSettingsRecord > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR The name, displayName, and extension parameters are used for creating the settings object (DtDeSettings) and backup, and for constructing the filename when readin/writing the records to disk. More... | |
| virtual | ~DtCommonBaseSettingsManager () |
| Virtual DTOR. More... | |
| virtual void | autoSaveIfNecessary () |
| Saves the current settings as defaults if autosave is enabled. More... | |
| virtual void | setAutoSave (bool doit) |
| Sets whether autosave is enabled for the settings manager. More... | |
| virtual bool | autoSave () const |
| Gets whether autosave is enabled for the settings manager. More... | |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| Sets whether setting initialization should check for a default record. More... | |
| virtual bool | useDefaultSettingsRecord () const |
| Gets whether setting initialization should check for a default record. More... | |
| virtual DtDeSettings * | settings () |
| Accessor for the manager's DtDeSettings object. More... | |
| virtual const DtDeSettings * | settings () const |
| Accessor for the manager's DtDeSettings object (const). More... | |
| virtual DtSettingsBackup * | settingsBackup () |
| Accessor for the manager's settings backup. More... | |
| virtual const DtSettingsBackup * | settingsBackup () const |
| Accessor for the manager's settings backup (const). More... | |
| virtual void | loadDefaults () |
| Initializes the settings and creates a backup. More... | |
| virtual void | saveDefaultSettings () |
| Saves the current settings' state as the default (on disk). More... | |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| Loads the default settings from disk. More... | |
| virtual void | importSettings (const std::string &filePath) |
| Load the settings' state from the given file. More... | |
| virtual void | exportSettings (const std::string &filePath) const |
| Save the current settings' state to the given file. More... | |
| virtual void | getSplitRecord (std::vector< DtAudioSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| For directory support, split the main record into different sub-records and give them each a file name. More... | |
| virtual void | addRecords (DtAudioSettingsRecord &rec, DtAudioSettingsRecord &combinedRec) |
| For directory support, when reading in a directory, add the records from each file to the combined record. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtAudioSettingsManager & | instance (DtDe &de) |
| Get an instance of the settings manager. More... | |
Public Attributes | |
Boost signals for changed settings | |
| boost::signalslib::signal < void(bool)> | signal_enableAudioChanged |
| Emitted when the audio enabled setting is changed. More... | |
| boost::signalslib::signal < void(double)> | signal_volumeChanged |
| Emitted when the audio volume is changed. More... | |
| boost::signalslib::signal < void(std::string)> | signal_audioPlaybackDeviceChanged |
| Emitted when the audio playback device setting is changed. More... | |
| boost::signalslib::signal < void(std::string)> | signal_audioCaptureDeviceChanged |
| Emitted when the audio capture device setting is changed. More... | |
| boost::signalslib::signal < void(bool)> | signal_showCaptureDeviceSettingsChanged |
| Emitted when the show audio capture device settings is changed. More... | |
| boost::signalslib::signal < void(double)> | signal_speedOfSoundChanged |
| Emitted when the speed of sound is changed. More... | |
| boost::signalslib::signal < void(double)> | signal_maxVoicesChanged |
| Emitted when the max voices are changed. More... | |
| boost::signalslib::signal < void(double)> | signal_maximumOutputDecibelCapabilityChanged |
| Emitted when the sound system capability changed. More... | |
| boost::signalslib::signal < void(bool)> | signal_environmentalProcessingEnabledChanged |
| Emitted when the environmental audio processing enabled setting is changed. More... | |
Protected Member Functions | |
| DtAudioSettingsManager (DtDe &de) | |
| Protected CTOR ( use instance(..) ). More... | |
Protected Attributes | |
| bool | myAudioEnabled |
| double | myVolume |
| std::string | myAudioPlaybackDevice |
| std::string | myAudioCaptureDevice |
| bool | myShowCaptureDeviceSettings |
| double | mySpeedOfSound |
| int | myMaxVoices |
| double | myMaximumOutputDecibelCapability |
| bool | myEnvironmentalProcessingEnabled |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< DtAudioSettingsRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| Befriend the manager instance functions for instance retrieval/creation. More... | |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
| Befriend the manager instance functions for instance retrieval/creation. More... | |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< DtAudioSettingsRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < DtAudioSettingsRecord > , DtAudioSettingsRecord > | RecordBackupType |
Rooted singleton that holds value about current state of sound settings.
|
virtual |
Virtual DTOR.
|
protected |
Protected CTOR ( use instance(..) ).
|
static |
Get an instance of the settings manager.
| [in] | de | is the display engine root for the singleton. |
|
virtual |
Set the master audio enabled state.
When set, this switch will allow all sounds to be played. When not set, all sounds will be prevented from playing.
| [in] | val | is the new enabled state: true for on, false for off. |
Reimplemented in makVrf::DtVrfAudioSettingsManager.
|
virtual |
Get the master audio enabled state.
| true | for audio is enabled. |
| false | otherwise. |
|
virtual |
Set the master audio volume.
This value controls the gain as heard from the listener's position.
| [in] | val | is the new volume. |
|
virtual |
|
virtual |
Set the device that audio should be played back on.
| [in] | deviceName | is the name of the device that should be used for audio playback |
|
virtual |
get the name of the device that the audio should be played back on
|
virtual |
Set the device that audio should be captured from.
| [in] | deviceName | is the name of the device that should be used for audio capture |
|
virtual |
get the name of the device that the audio should be captured from
|
virtual |
Set whether or not the capture device selection dialog is present in the audio settings dialog.
| [in] | val | is the new enabled state: true for on, false for off. |
|
virtual |
Get whether or not the capture device selection dialog is present in the audio settings dialog.
|
virtual |
Set the speed of sound (in meters/second).
This value controls the speed of sound which can depend on many external factors. This allows the user to choose the speed for their situation
| [in] | val | is the new speed of sound. |
|
virtual |
|
virtual |
Set the maximum number of simultaneous playing sounds.
| [in] | val | is the new number of active voices. |
|
virtual |
|
virtual |
Set the maximum loudness that the sound hardware that this application is playing on is capable of producing.
This is used to calibrate where played sounds start to falloff sounds.
| [in] | val | is the loudness in decibels. |
|
virtual |
Get the maximum loudness that the sound system can generate.
|
virtual |
Set the environmental processing enabled state.
When set, this switch will allow all sounds to be played with environmental effects processing such as lowpass filtering based on distance, so high frequency sounds get filtered out the further a sound source is. When not set, all sounds will be played without filtering
| [in] | val | is the new enabled state: true for on, false for off. |
|
virtual |
Get the environmental processing enabled state.
| true | for processing is enabled. |
| false | otherwise. |
|
virtual |
Set the current settings' state from the given record.
Implements makVrv::DtBaseSettingsManager< DtAudioSettingsRecord >.
|
virtual |
Store the current settings' state in the given record.
Implements makVrv::DtBaseSettingsManager< DtAudioSettingsRecord >.
|
friend |
Befriend the manager instance functions for instance retrieval/creation.
Befriend the manager instance functions for instance retrieval/creation.
Manager requirements: 1) Static instance function 2) Protected DtSignalConnectionManager named myConnections. 3) Member functioned called loadDefaults which takes no arguments. and loads the default settings of the manager or factory from disk. 4) define defaultManagerInstanceFunction as friend. 5) define defaultManagerRegisterInstanceFunction as friend (see below). 5) Protected Constructor which only takes a DtDe reference.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Befriend the manager instance functions for instance retrieval/creation.
Befriend the manager instance functions for instance retrieval/creation.
| boost::signalslib::signal<void(bool)> makVrv::DtAudioSettingsManager::signal_enableAudioChanged |
Emitted when the audio enabled setting is changed.
| boost::signalslib::signal<void(double)> makVrv::DtAudioSettingsManager::signal_volumeChanged |
Emitted when the audio volume is changed.
| boost::signalslib::signal<void(std::string)> makVrv::DtAudioSettingsManager::signal_audioPlaybackDeviceChanged |
Emitted when the audio playback device setting is changed.
| boost::signalslib::signal<void(std::string)> makVrv::DtAudioSettingsManager::signal_audioCaptureDeviceChanged |
Emitted when the audio capture device setting is changed.
| boost::signalslib::signal<void(bool)> makVrv::DtAudioSettingsManager::signal_showCaptureDeviceSettingsChanged |
Emitted when the show audio capture device settings is changed.
| boost::signalslib::signal<void(double)> makVrv::DtAudioSettingsManager::signal_speedOfSoundChanged |
Emitted when the speed of sound is changed.
| boost::signalslib::signal<void(double)> makVrv::DtAudioSettingsManager::signal_maxVoicesChanged |
Emitted when the max voices are changed.
| boost::signalslib::signal<void(double)> makVrv::DtAudioSettingsManager::signal_maximumOutputDecibelCapabilityChanged |
Emitted when the sound system capability changed.
| boost::signalslib::signal<void(bool)> makVrv::DtAudioSettingsManager::signal_environmentalProcessingEnabledChanged |
Emitted when the environmental audio processing enabled setting is changed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |