Qt 5.11 | Qt Multimedia | C++ Classes | QAbstractAudioOutput

Qt 5.11.3 Reference Documentation

# QAbstractAudioOutput Class

The QAbstractAudioOutput class is a base class for audio backends. More...

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

- List of all members, including inherited members

## Public Functions

virtual int | bufferSize() const = 0
virtual int | bytesFree() const = 0
virtual QString | category() const
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 | setCategory(const QString &)
virtual void | setFormat(const QAudioFormat &fmt) = 0
virtual void | setNotifyInterval(int milliSeconds) = 0
virtual void | setVolume(qreal)
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

## Signals

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

## Detailed Description

The QAbstractAudioOutput class is a base class for audio backends.

QAbstractAudioOutput implements audio functionality for QAudioOutput, i.e., QAudioOutput routes function calls to QAbstractAudioOutput. For a description of the functionality that is implemented, see the QAudioOutput class and function descriptions.

See also QAudioOutput.

## Member Function Documentation

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

See also setBufferSize().

### `[pure virtual]` int QAbstractAudioOutput::bytesFree() const

### `[virtual]` QString QAbstractAudioOutput::category() const

See also setCategory().

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

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

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

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

See also setFormat().

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

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

See also setNotifyInterval().

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

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

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

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

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

See also bufferSize().

### `[virtual]` void QAbstractAudioOutput::setCategory(const QString &)

See also category().

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

See also format().

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

See also notifyInterval().

### `[virtual]` void QAbstractAudioOutput::setVolume(qreal)

See also volume().

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

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

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

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

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

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

### `[virtual]` qreal QAbstractAudioOutput::volume() const

See also setVolume().