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;
368#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.
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.
QtAudio::Error error() const
Returns the error state.
qsizetype bytesAvailable() const
Returns the amount of audio data available to read in bytes.
QtAudio::State state() const
Returns the state of audio processing.
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.
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 stateChanged(QAudio::State state)
void start() noexcept
\typealias QElapsedTimer::Duration Synonym for std::chrono::nanoseconds.
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
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