|
| void | status (QString message) |
| | Handles status messages from the SoundOutput.
|
| void | error (QString message) |
| | Handles error messages from the SoundOutput.
|
| void | setDevice (const QAudioDevice &device, unsigned msBuffer=0) |
| | Sets the audio device and buffer size.
|
| void | play (const QString &filePath) |
| | Plays an audio file from the specified file path.
|
|
void | stop () |
| | Stops audio playback.
|
◆ NotificationAudio()
| NotificationAudio::NotificationAudio |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
Constructs a NotificationAudio object.
- Parameters
-
| parent | The parent QObject. |
- Returns
- None.
◆ error
| void NotificationAudio::error |
( |
QString | message | ) |
|
|
slot |
Handles error messages from the SoundOutput.
- Parameters
-
| message | The error message. |
◆ play
| void NotificationAudio::play |
( |
const QString & | filePath | ) |
|
|
slot |
Plays an audio file from the specified file path.
- Parameters
-
| filePath | The path to the audio file. |
◆ setDevice
| void NotificationAudio::setDevice |
( |
const QAudioDevice & | device, |
|
|
unsigned | msBuffer = 0 ) |
|
slot |
Sets the audio device and buffer size.
- Parameters
-
| device | The QAudioDevice to use. |
| msBuffer | The buffer size in milliseconds. |
◆ status
| void NotificationAudio::status |
( |
QString | message | ) |
|
|
slot |
Handles status messages from the SoundOutput.
- Parameters
-
| message | The status message. |
The documentation for this class was generated from the following files: