![]() |
Qt 6.x
The Qt SDK
|
#include <QtMultimedia/qtmultimediaglobal.h>
#include <QtCore/qmetatype.h>
Go to the source code of this file.
Namespaces | |
namespace | QAudio |
The QAudio namespace contains enums used by the audio classes. | |
Enumerations | |
enum | QAudio::Error { QAudio::NoError , QAudio::OpenError , QAudio::IOError , QAudio::UnderrunError , QAudio::FatalError } |
\value NoError No errors have occurred \value OpenError An error occurred opening the audio device \value IOError An error occurred during read/write of audio device \value UnderrunError Audio data is not being fed to the audio device at a fast enough rate \value FatalError A non-recoverable error has occurred, the audio device is not usable at this time. More... | |
enum | QAudio::State { QAudio::ActiveState , QAudio::SuspendedState , QAudio::StoppedState , QAudio::IdleState } |
\value ActiveState Audio data is being processed, this state is set after start() is called and while audio data is available to be processed. More... | |
enum | QAudio::VolumeScale { QAudio::LinearVolumeScale , QAudio::CubicVolumeScale , QAudio::LogarithmicVolumeScale , QAudio::DecibelVolumeScale } |
This enum defines the different audio volume scales. More... | |
Functions | |
float | QAudio::convertVolume (float volume, VolumeScale from, VolumeScale to) |
Converts an audio volume from a volume scale to another, and returns the result. | |
Q_MULTIMEDIA_EXPORT QDebug | operator<< (QDebug dbg, QAudio::Error error) |
Q_MULTIMEDIA_EXPORT QDebug | operator<< (QDebug dbg, QAudio::State state) |
Q_MULTIMEDIA_EXPORT QDebug | operator<< (QDebug dbg, QAudio::VolumeScale role) |
Q_MULTIMEDIA_EXPORT QDebug operator<< | ( | QDebug | dbg, |
QAudio::Error | error | ||
) |
Definition at line 173 of file qaudio.cpp.
References error, QAudio::FatalError, QAudio::IOError, QAudio::NoError, QAudio::OpenError, and QAudio::UnderrunError.
Q_MULTIMEDIA_EXPORT QDebug operator<< | ( | QDebug | dbg, |
QAudio::State | state | ||
) |
Definition at line 197 of file qaudio.cpp.
References QAudio::ActiveState, QAudio::IdleState, state, QAudio::StoppedState, and QAudio::SuspendedState.
Q_MULTIMEDIA_EXPORT QDebug operator<< | ( | QDebug | dbg, |
QAudio::VolumeScale | role | ||
) |
Definition at line 218 of file qaudio.cpp.
References QAudio::CubicVolumeScale, QAudio::DecibelVolumeScale, QAudio::LinearVolumeScale, and QAudio::LogarithmicVolumeScale.