|
| void | setFormat (QAudioDevice const &device, unsigned channels, unsigned msBuffered=0u) |
| | Sets the audio format based on the device and channel count.
|
| void | setDeviceFormat (QAudioDevice const &device, QAudioFormat const &format, unsigned msBuffered=0u) |
| | Sets the audio device and format.
|
| void | restart (QIODevice *) |
| | Restarts audio output with the specified source.
|
|
void | suspend () |
| | Suspends audio output.
|
|
void | resume () |
| | Resumes audio output.
|
|
void | reset () |
| | Resets the audio output.
|
|
void | stop () |
| | Stops audio output.
|
| void | setAttenuation (qreal) |
| | Sets the attenuation in decibels.
|
|
void | resetAttenuation () |
| | Resets the attenuation to zero.
|
|
|
void | error (QString message) const |
|
void | status (QString message) const |
|
| qreal | attenuation () const |
| | Gets the current attenuation in decibels.
|
| QAudioFormat | format () const |
| | Gets the current audio format.
|
◆ attenuation()
| qreal SoundOutput::attenuation |
( |
| ) |
const |
Gets the current attenuation in decibels.
- Returns
- The attenuation value.
◆ format()
| QAudioFormat SoundOutput::format |
( |
| ) |
const |
Gets the current audio format.
- Returns
- The QAudioFormat object.
◆ restart
| void SoundOutput::restart |
( |
QIODevice * | source | ) |
|
|
slot |
Restarts audio output with the specified source.
- Parameters
-
| source | The QIODevice to read audio data from. |
◆ setAttenuation
| void SoundOutput::setAttenuation |
( |
qreal | a | ) |
|
|
slot |
Sets the attenuation in decibels.
- Parameters
-
◆ setDeviceFormat
| void SoundOutput::setDeviceFormat |
( |
QAudioDevice const & | device, |
|
|
QAudioFormat const & | format, |
|
|
unsigned | msBuffered = 0u ) |
|
slot |
Sets the audio device and format.
- Parameters
-
| device | The QAudioDevice to use. |
| format | The QAudioFormat to set. |
| msBuffered | The buffer size in milliseconds. |
◆ setFormat
| void SoundOutput::setFormat |
( |
QAudioDevice const & | device, |
|
|
unsigned | channels, |
|
|
unsigned | msBuffered = 0u ) |
|
slot |
Sets the audio format based on the device and channel count.
- Parameters
-
| device | The QAudioDevice to use. |
| channels | The number of audio channels (1 for mono, 2 for stereo). |
| msBuffered | The buffer size in milliseconds. |
The documentation for this class was generated from the following files: