Handles iterating through sound factories until one is able to produce sound given the input sound resource.
More...
|
|
static ApplicationOption< bool > | enable_sound |
| | Application option controlling whether sound is enabled.
|
|
static ApplicationOption< bool > | enable_text_to_speech |
| | Application option controlling whether text-to-speech is enabled.
|
|
static ApplicationOption< bool > | grab_volume_keys |
| | Application option controlling whether the app captures volume key input.
|
Handles iterating through sound factories until one is able to produce sound given the input sound resource.
Definition at line 73 of file SoundManager.h.
◆ AddSoundFactory()
| void SoundManager::AddSoundFactory |
( |
SoundFactory * | factory | ) |
|
|
static |
Registers a new sound factory with the manager.
- Parameters
-
| [in] | factory | The sound factory to register. |
◆ AvailableSounds()
Returns all available sounds from all registered factories.
- Returns
- A buffer of available Sound entries.
◆ EnableTextToSpeech()
| void SoundManager::EnableTextToSpeech |
( |
bool | enable | ) |
|
|
static |
Enables or disables text-to-speech across all registered factories.
- Parameters
-
| [in] | enable | True to enable, false to disable. |
◆ PlaySound()
| bool SoundManager::PlaySound |
( |
const StringView & | s | ) |
|
|
static |
Plays the sound identified by the given resource string using the first capable factory.
- Parameters
-
| [in] | s | The sound resource identifier. |
- Returns
- True if the sound was successfully played.
◆ SupportsTextToSpeech()
| bool SoundManager::SupportsTextToSpeech |
( |
| ) |
|
|
static |
Returns whether any registered factory supports text-to-speech.
- Returns
- True if text-to-speech is supported.
◆ TextToSpeech()
Converts the given text-to-speech request into audible speech using available factories.
- Parameters
-
| [in] | s | The text-to-speech request. |
- Returns
- True if the speech was successfully produced.
The documentation for this class was generated from the following file: