10#include <private/qplatformmediadevices_p.h>
11#include <private/qplatformmediaintegration_p.h>
99 qWarning() << (
"No audio device detected");
324 return d ? d->
volume() : 1.0;
335#include "moc_qaudiosink.cpp"
IOBluetoothDevice * device
The QAudioDevice class provides an information about audio devices and their functionality.
The QAudioSink class provides an interface for sending audio data to an audio output device.
QAudioSink(const QAudioFormat &format=QAudioFormat(), QObject *parent=nullptr)
Construct a new audio output and attach it to parent.
qint64 processedUSecs() const
Returns the amount of audio data processed since start() was called (in microseconds).
void stop()
Stops the audio output, detaching from the system resource.
void resume()
Resumes processing audio data after a suspend().
QAudio::State state() const
Returns the state of audio processing.
void stateChanged(QAudio::State state)
This signal is emitted when the device state has changed.
void setVolume(qreal)
Sets the output volume to volume.
void setBufferSize(qsizetype bytes)
Sets the audio buffer size to value in bytes.
qint64 elapsedUSecs() const
Returns the microseconds since start() was called, including time in Idle and Suspend states.
qreal volume() const
Returns the volume between 0.0 and 1.0 inclusive.
qsizetype bufferSize() const
Returns the audio buffer size in bytes.
QAudioFormat format() const
Returns the QAudioFormat being used.
void reset()
Drops all audio data in the buffers, resets buffers to zero.
qsizetype bytesFree() const
Returns the number of free bytes available in the audio buffer.
void suspend()
Stops processing audio data, preserving buffered audio data.
QAudio::Error error() const
Returns the error state.
QIODevice * start()
Returns a pointer to the internal QIODevice being used to transfer data to the system's audio output.
~QAudioSink()
Destroys this audio output.
qint64 restart() noexcept
Restarts the timer and returns the number of milliseconds elapsed since the previous start.
qint64 nsecsElapsed() const noexcept
\inmodule QtCore \reentrant
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
State
\value ActiveState Audio data is being processed, this state is set after start() is called and while...
Error
\value NoError No errors have occurred \value OpenError An error occurred opening the audio device \v...
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
constexpr const T & qBound(const T &min, const T &val, const T &max)
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei GLenum format
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent