Qt 5.11 | Qt Multimedia | C++ Classes | QAbstractAudioInput

Qt 5.11.3 Reference Documentation

# QAbstractAudioInput Class

The QAbstractAudioInput class provides access for QAudioInput to access the audio device provided by the plugin. More...

Header: | #include <QAbstractAudioInput>
qmake: | QT += multimedia

- List of all members, including inherited members

## Public Functions

virtual int | bufferSize() const = 0
virtual int | bytesReady() const = 0
virtual qint64 | elapsedUSecs() const = 0
virtual QAudio::Error | error() const = 0
virtual QAudioFormat | format() const = 0
virtual int | notifyInterval() const = 0
virtual int | periodSize() const = 0
virtual qint64 | processedUSecs() const = 0
virtual void | reset() = 0
virtual void | resume() = 0
virtual void | setBufferSize(int value) = 0
virtual void | setFormat(const QAudioFormat &fmt) = 0
virtual void | setNotifyInterval(int milliSeconds) = 0
virtual void | setVolume(qreal) = 0
virtual void | start(QIODevice *device) = 0
virtual QIODevice * | start() = 0
virtual QAudio::State | state() const = 0
virtual void | stop() = 0
virtual void | suspend() = 0
virtual qreal | volume() const = 0

## Signals

void | errorChanged(QAudio::Error error)
void | notify()
void | stateChanged(QAudio::State state)

## Detailed Description

The QAbstractAudioInput class provides access for QAudioInput to access the audio device provided by the plugin.

QAudioDeviceInput keeps an instance of QAbstractAudioInput and routes calls to functions of the same name to QAbstractAudioInput. This means that it is QAbstractAudioInput that implements the audio functionality. For a description of the functionality, see the QAudioInput class description.

See also QAudioInput.

## Member Function Documentation

### `[pure virtual]` int QAbstractAudioInput::bufferSize() const

See also setBufferSize().

### `[pure virtual]` int QAbstractAudioInput::bytesReady() const

### `[pure virtual]` qint64 QAbstractAudioInput::elapsedUSecs() const

### `[pure virtual]` QAudio::Error QAbstractAudioInput::error() const

### `[signal]` void QAbstractAudioInput::errorChanged(QAudio::Error error)

### `[pure virtual]` QAudioFormat QAbstractAudioInput::format() const

See also setFormat().

### `[signal]` void QAbstractAudioInput::notify()

### `[pure virtual]` int QAbstractAudioInput::notifyInterval() const

See also setNotifyInterval().

### `[pure virtual]` int QAbstractAudioInput::periodSize() const

### `[pure virtual]` qint64 QAbstractAudioInput::processedUSecs() const

### `[pure virtual]` void QAbstractAudioInput::reset()

### `[pure virtual]` void QAbstractAudioInput::resume()

### `[pure virtual]` void QAbstractAudioInput::setBufferSize(int value)

See also bufferSize().

### `[pure virtual]` void QAbstractAudioInput::setFormat(const QAudioFormat &fmt)

See also format().

### `[pure virtual]` void QAbstractAudioInput::setNotifyInterval(int milliSeconds)

See also notifyInterval().

### `[pure virtual]` void QAbstractAudioInput::setVolume(qreal)

See also volume().

### `[pure virtual]` void QAbstractAudioInput::start(QIODevice *device)

### `[pure virtual]` QIODevice *QAbstractAudioInput::start()

### `[pure virtual]` QAudio::State QAbstractAudioInput::state() const

### `[signal]` void QAbstractAudioInput::stateChanged(QAudio::State state)

### `[pure virtual]` void QAbstractAudioInput::stop()

### `[pure virtual]` void QAbstractAudioInput::suspend()

### `[pure virtual]` qreal QAbstractAudioInput::volume() const

See also setVolume().