IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAbstractAudioOutput Class

The QAbstractAudioOutput class is a base class for audio backends.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractAudioOutput Class▲

  • Header: QAbstractAudioOutput

  • qmake: QT += multimedia

  • Inherits: QObject

  • Inherited By:

  • Group: QAbstractAudioOutput is part of multimedia

Detailed Description▲

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▲

See also QAudioOutput

Member Function Documentation▲

 

[pure virtual] int QAbstractAudioOutput::bufferSize() const▲

Returns the audio buffer size in bytes.

See Also▲

See also setBufferSize()

[pure virtual] int QAbstractAudioOutput::bytesFree() const▲

Returns the free space available in bytes in the audio buffer.

[pure virtual] qint64 QAbstractAudioOutput::elapsedUSecs() const▲

Returns the milliseconds since start() was called, including time in Idle and suspend states.

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

Returns the error state.

void QAbstractAudioOutput::errorChanged(QAudio::Error error)▲

This signal is emitted when the error state has changed.

[pure virtual] QAudioFormat QAbstractAudioOutput::format() const▲

Returns the QAudioFormat being used.

See Also▲

See also setFormat()

void QAbstractAudioOutput::notify()▲

This signal is emitted when x ms of audio data has been processed the interval set by setNotifyInterval(x).

[pure virtual] int QAbstractAudioOutput::notifyInterval() const▲

Returns the notify interval in milliseconds.

See Also▲

See also setNotifyInterval()

[pure virtual] int QAbstractAudioOutput::periodSize() const▲

Returns the period size in bytes.

[pure virtual] qint64 QAbstractAudioOutput::processedUSecs() const▲

Returns the amount of audio data processed since start() was called in milliseconds.

[pure virtual] void QAbstractAudioOutput::reset()▲

Drops all audio data in the buffers, resets buffers to zero.

[pure virtual] void QAbstractAudioOutput::resume()▲

Resumes processing audio data after a suspend()

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

Sets the audio buffer size to value in bytes.

See Also▲

See also bufferSize()

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

Set the QAudioFormat to use to fmt. Setting the format is only allowable while in QAudio::StoppedState.

See Also▲

See also format()

[pure virtual] void QAbstractAudioOutput::setNotifyInterval(int ms)▲

Sets the interval for notify() signal to be emitted. This is based on the ms of audio data processed not on actual real-time. The resolution of the timer is platform specific.

See Also▲

See also notifyInterval()

[virtual] void QAbstractAudioOutput::setVolume(qreal volume)▲

Sets the volume. Where volume is between 0.0 and 1.0.

See Also▲

See also volume()

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

Uses the device as the QIODevice to transfer data.

[pure virtual] QIODevice *QAbstractAudioOutput::start()▲

Returns a pointer to the QIODevice being used to handle the data transfer. This QIODevice can be used to write() audio data directly.

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

Returns the state of audio processing.

void QAbstractAudioOutput::stateChanged(QAudio::State state)▲

This signal is emitted when the device state has changed.

[pure virtual] void QAbstractAudioOutput::stop()▲

Stops the audio output.

[pure virtual] void QAbstractAudioOutput::suspend()▲

Stops processing audio data, preserving buffered audio data.

[virtual] qreal QAbstractAudioOutput::volume() const▲

Returns the volume in the range 0.0 and 1.0.

See Also▲

See also setVolume()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+