Adds Sound generated via the Qt Framework to the application.
More...
|
|
static void | SetupSystem () |
| | Sets up the Qt sound system and registers this factory.
|
Adds Sound generated via the Qt Framework to the application.
Definition at line 43 of file QTSoundManager.h.
◆ availableSounds()
| virtual Buffer< Sound > QTSoundManager::availableSounds |
( |
| ) |
|
|
overridevirtual |
Gets all available sound effects.
- Returns
- A buffer of available Sound objects.
Implements SoundFactory.
◆ enableTextToSpeech()
| virtual void QTSoundManager::enableTextToSpeech |
( |
bool | enable | ) |
|
|
overridevirtual |
Enables or disables text-to-speech.
- Parameters
-
| [in] | enable | True to enable, false to disable. |
Implements SoundFactory.
◆ playSound()
| bool QTSoundManager::playSound |
( |
const StringView & | sound | ) |
|
|
overridevirtual |
Plays a sound by identifier.
- Parameters
-
| [in] | sound | The sound identifier to play. |
- Returns
- True if the sound was played successfully.
Implements SoundFactory.
◆ soundEffect()
| QSoundEffect * QTSoundManager::soundEffect |
( |
const StringView & | sound | ) |
|
Gets or creates a QSoundEffect for the given sound identifier.
- Parameters
-
| [in] | sound | The sound identifier. |
- Returns
- A pointer to the QSoundEffect.
◆ soundEffectTask()
| SoundEffectTask * QTSoundManager::soundEffectTask |
( |
const StringView & | sound | ) |
|
Gets or creates a threaded sound effect task for the given sound.
- Parameters
-
| [in] | sound | The sound identifier. |
- Returns
- A pointer to the SoundEffectTask.
◆ supportsTextToSpeech()
| virtual bool QTSoundManager::supportsTextToSpeech |
( |
| ) |
const |
|
overridevirtual |
Checks whether text-to-speech is supported on this system.
- Returns
- True if text-to-speech is available.
Implements SoundFactory.
◆ textToSpeech()
Speaks the given text using text-to-speech.
- Parameters
-
| [in] | speech | The text-to-speech request containing the text and parameters. |
- Returns
- True if the speech was initiated successfully.
Implements SoundFactory.
◆ textToSpeechEnabled()
| virtual bool QTSoundManager::textToSpeechEnabled |
( |
| ) |
const |
|
overridevirtual |
Checks whether text-to-speech is currently enabled.
- Returns
- True if text-to-speech is enabled.
Implements SoundFactory.
The documentation for this class was generated from the following file: