10#include <private/qplatformmediadevices_p.h>
11#include <private/qplatformmediaintegration_p.h>
109 qWarning() << (
"No audio device detected");
314 return d ? d->
volume() : 1.0;
364#include "moc_qaudiosource.cpp"
IOBluetoothDevice * device
The QAudioDevice class provides an information about audio devices and their functionality.
The QAudioSource class provides an interface for receiving audio data from an audio input device.
QAudio::Error error() const
Returns the error state.
qreal volume() const
Returns the input volume.
~QAudioSource()
Destroy this audio input.
void setBufferSize(qsizetype bytes)
Sets the audio buffer size to value bytes.
void setVolume(qreal volume)
Sets the input volume to volume.
void stop()
Stops the audio input, detaching from the system resource.
QAudioSource(const QAudioFormat &format=QAudioFormat(), QObject *parent=nullptr)
Construct a new audio input and attach it to parent.
qsizetype bytesAvailable() const
Returns the amount of audio data available to read in bytes.
QAudioFormat format() const
Returns the QAudioFormat being used.
qint64 processedUSecs() const
Returns the amount of audio data processed since start() was called in microseconds.
void suspend()
Stops processing audio data, preserving buffered audio data.
qsizetype bufferSize() const
Returns the audio buffer size in bytes.
void resume()
Resumes processing audio data after a suspend().
void reset()
Drops all audio data in the buffers, resets buffers to zero.
qint64 elapsedUSecs() const
Returns the microseconds since start() was called, including time in Idle and Suspend states.
QAudio::State state() const
Returns the state of audio processing.
QIODevice * start()
Returns a pointer to the internal QIODevice being used to transfer data from the system's audio input...
void stateChanged(QAudio::State state)
This signal is emitted when the device state has changed.
void start() noexcept
Starts this timer.
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