![]() |
VR-Forces Developer's Guide
|
The Audio Manager ensures the application's current audio settings are applied.
The manager ensure the following audio settings are applied:
Public Member Functions | |
| DtRadioAudioManager () | |
| virtual | ~DtRadioAudioManager () |
| virtual bool | init (const DtRadioSystemInitializer &) |
| virtual bool | playbackDeviceInitialized () |
| virtual bool | captureDeviceInitialized () |
| virtual bool | isEnabled () |
| virtual void | setEnabled (bool enable) |
| virtual double | soundVolume () |
| virtual void | setSoundVolume (double volume) |
| virtual makAudio::DtAudioBuffer * | nextBuffer () |
| virtual float | maximumOutputDecibelCapability () |
| virtual void | setMaximumOutputDecibelCapability (float max) |
| virtual std::vector< std::string > | playbackDeviceList () const |
| virtual std::string | playbackDeviceName () const |
| virtual std::vector< std::string > | captureDeviceList () const |
| virtual std::string | captureDeviceName () const |
| makAudio::DtAudioManager * | audioManager () const |
| makAudio::DtAudioCapture * | audioCaptureManager () const |
| ALCcontext * | context () const |
| virtual bool | captureInitialized () const |
| virtual bool | changePlaybackDevice (const std::string &device) |
| virtual bool | changeCaptureDevice (const std::string &device) |
| virtual void | tick (double t) |
| virtual void | shutdown () |
Public Attributes | |
| boost::signals2::signal< void()> | signal_playbackDeviceInitialized |
| boost::signals2::signal< void()> | signal_captureDeviceInitialized |
Protected Member Functions | |
| virtual void | initializeAudioDevicesIfNeeded () |
| virtual void | slot_audioEnabledUpdated (bool enabled) |
| virtual void | slot_showCaptureDeviceSettingsUpdated (bool show) |
| virtual void | slot_maximumOutputDecibelCapabilityUpdated (double decibel) |
Protected Attributes | |
| bool | myPlaybackDeviceInitialized = false |
| bool | myCaptureDeviceInitialized = false |
| makAudio::DtAudioManager * | myAudioManager = nullptr |
| makAudio::DtAudioCapture * | myAudioCaptureManager = nullptr |
| DtRadioSystemInitializer | myRadioSystemInitializer |
Private Member Functions | |
| DtRadioAudioManager (const DtRadioAudioManager &) | |
| DtRadioAudioManager & | operator= (const DtRadioAudioManager &) |
| makRadio::DtRadioAudioManager::DtRadioAudioManager | ( | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Copy Constructor not implemented � Copy not allowed.
|
virtual |
Inits the sound system and create the audio context.
|
virtual |
Return whether the playback device is initialized.
|
virtual |
Return whether the capture device is initialized.
|
virtual |
Return whether the audio manager is enabled.
|
virtual |
Sets whether the audio manager is enabled. If set to false, audio manage will stop playing any sound.
|
virtual |
Return the volume of the sound.
|
virtual |
Sets the volume of the sound.
|
virtual |
Returns the next audio buffer for output from the appropriate capture device.
|
virtual |
Gets the maximum decibel. The maximum decibel output of the sound system that the application is being played on. Used to tune the sound falloff distances to match the loudness of the system so that they sound realistic within the capabilities of the speakers being used. This defaults to 70 decibels, which is about the level a desktop computer will play loud audio at (or headphones). If the audio system is capable of playing louder than 70 dB, then increase this to the expected maximum output of the system.
|
virtual |
Sets the maximum decibel. The maximum decibel output of the sound system that the application is being played on. Used to tune the sound falloff distances to match the loudness of the system so that they sound realistic within the capabilities of the speakers being used. This defaults to 70 decibels, which is about the level a desktop computer will play loud audio at (or headphones). If the audio system is capable of playing louder than 70 dB, then increase this to the expected maximum output of the system.
|
virtual |
Get the list of audio playback devices available.
|
virtual |
Get the current playback device.
|
virtual |
Get the list of audio capture devices available.
|
virtual |
|
inline |
|
inline |
| ALCcontext* makRadio::DtRadioAudioManager::context | ( | ) | const |
|
virtual |
|
virtual |
Slot when the playback device changes.
|
virtual |
Slot when the capture device changes.
|
virtual |
Updates the sound system per tick. Mainly update the listener and sounds.
|
virtual |
Shut down the sound system, destory the context and release all the sound resources.
|
protectedvirtual |
Initialize the playback and/or capture device if either device is not already initialized. This function does nothing if both devices have already been successfully initialized.
|
protectedvirtual |
Methods connected to audio signals.
Slot when enables/disables the audio.
|
protectedvirtual |
Slot when show/hide the capture device settings.
|
protectedvirtual |
Slot when the maximum output decibel allowed changes.
|
private |
Assignment Operator not implemented � Copy not allowed.
| boost::signals2::signal<void()> makRadio::DtRadioAudioManager::signal_playbackDeviceInitialized |
| boost::signals2::signal<void()> makRadio::DtRadioAudioManager::signal_captureDeviceInitialized |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |