|
|
void | status (QString message) |
|
void | error (QString message) |
|
|
| NotificationSoundOutput (QObject *parent=nullptr) |
| void | setDevice (QAudioDevice const &device, unsigned msBuffer) |
| | Sets the audio device and buffer size.
|
| void | setAttenuation (qreal a) |
| | Sets the attenuation in dB.
|
| void | play (QByteArray const &data, QAudioFormat const &format) |
| | Plays audio from the provided data and format.
|
|
void | stop () |
| | Stops playback and releases all resources.
|
◆ play()
| void NotificationSoundOutput::play |
( |
QByteArray const & | data, |
|
|
QAudioFormat const & | format ) |
Plays audio from the provided data and format.
- Parameters
-
| data | The raw PCM audio data. |
| format | The QAudioFormat describing the data. |
Any currently playing notification is stopped and replaced.
◆ setAttenuation()
| void NotificationSoundOutput::setAttenuation |
( |
qreal | a | ) |
|
Sets the attenuation in dB.
- Parameters
-
| a | The attenuation value (0 = full volume). |
◆ setDevice()
| void NotificationSoundOutput::setDevice |
( |
QAudioDevice const & | device, |
|
|
unsigned | msBuffer ) |
Sets the audio device and buffer size.
- Parameters
-
| device | The QAudioDevice to use. |
| msBuffer | The buffer size in milliseconds. |
The documentation for this class was generated from the following files: