Audio Output Device, supporting 16 and 24 bit signed integer PCM.
More...
#include <audioaoutputdevice.h>
|
qint64 | readData (char *data, qint64 maxSize) override final |
| Read PCM data. More...
|
|
qint64 | writeData (const char *data, qint64 maxSize) override final |
| Empty implementation for writing without functionality. More...
|
|
qint64 | readData (char *data, qint64 maxSize) override final |
|
qint64 | writeData (const char *data, qint64 maxSize) override final |
|
Audio Output Device, supporting 16 and 24 bit signed integer PCM.
This is the link between the audio classes of the module and the Qt audio system, inheriting QIODevice.
Definition at line 38 of file audioaoutputdevice.h.
AudioOutputDevice::AudioOutputDevice |
( |
AudioOutput * |
audiooutput | ) |
|
AudioOutputDevice::AudioOutputDevice |
( |
AudioOutput * |
audiooutput | ) |
|
bool AudioOutputDevice::connect |
( |
const AudioDeviceParameters & |
parameters | ) |
|
Connect and start the audio output device.
- Parameters
-
parameters | : AudioDeviceParameters used for the connection. If the device name is empty the function attempts to connect the system's default audio output device. |
- Returns
- True if device could be opened successfully.
Definition at line 58 of file audiooutputdevice.cpp.
void AudioOutputDevice::disconnect |
( |
| ) |
|
void AudioOutputDevice::disconnect |
( |
| ) |
|
int Log::getVerbosity |
( |
| ) |
|
|
inherited |
Get the actual verbosity level.
- Returns
- : Verbosity level (1...4)
Definition at line 118 of file log.cpp.
qint64 AudioOutputDevice::readData |
( |
char * |
data, |
|
|
qint64 |
maxSize |
|
) |
| |
|
finaloverrideprivate |
Read PCM data.
This is a virtual function defined in QIODevice which is now implemented here. The call is redirected to the SoundGenerator.
- Parameters
-
data | : Pointer to the PCM data |
maxSize | : Maximal size to be generated in bytes |
- Returns
- : Actual number of bytes that have been generated
Definition at line 272 of file audiooutputdevice.cpp.
qint64 AudioOutputDevice::readData |
( |
char * |
data, |
|
|
qint64 |
maxSize |
|
) |
| |
|
finaloverrideprivate |
void Log::setVerbosity |
( |
int |
verbosity | ) |
|
|
inherited |
Set the verbosity level of the class-specific messages.
- Parameters
-
verbosity | : Verbosity level (1...4) |
Definition at line 107 of file log.cpp.
void AudioOutputDevice::setVolume |
( |
double |
volume | ) |
|
Set the global volume.
- Parameters
-
volume | : Volume level between 0 and 1 |
Definition at line 254 of file audiooutputdevice.cpp.
void AudioOutputDevice::setVolume |
( |
double |
volume | ) |
|
qint64 AudioOutputDevice::writeData |
( |
const char * |
data, |
|
|
qint64 |
maxSize |
|
) |
| |
|
finaloverrideprivate |
Empty implementation for writing without functionality.
This function is virtual in QIODevice and has to be implemented, even if it does nothing.
- Parameters
-
- Returns
- : Zero
Definition at line 291 of file audiooutputdevice.cpp.
qint64 AudioOutputDevice::writeData |
( |
const char * |
data, |
|
|
qint64 |
maxSize |
|
) |
| |
|
finaloverrideprivate |
int AudioOutputDevice::mSampleSize |
|
private |
QAudioOutput* AudioOutputDevice::pQtAudioOutputDriver |
|
private |
QAudioOutput* AudioOutputDevice::pQtAudioOutputStream |
|
private |
The documentation for this class was generated from the following files: