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

QAbstractAudioInput Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractAudioInput Class▲

  • Header: QAbstractAudioInput

  • qmake: QT += multimedia

  • Inherits: QObject

  • Inherited By:

  • Group: QAbstractAudioInput is part of multimedia

Detailed Description▲

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▲

See also QAudioInput

Member Function Documentation▲

 

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

Returns the audio buffer size in milliseconds.

See Also▲

See also setBufferSize()

[pure virtual] int QAbstractAudioInput::bytesReady() const▲

Returns the amount of audio data available to read in bytes.

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

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

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

Returns the error state.

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

This signal is emitted when the error state has changed.

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

Returns the QAudioFormat being used

See Also▲

See also setFormat()

void QAbstractAudioInput::notify()▲

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

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

Returns the notify interval in milliseconds.

See Also▲

See also setNotifyInterval()

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

Returns the period size in bytes.

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

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

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

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

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

Resumes processing audio data after a suspend().

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

Sets the audio buffer size to value in milliseconds.

See Also▲

See also bufferSize()

[pure virtual] void QAbstractAudioInput::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 QAbstractAudioInput::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()

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

Uses the device as the QIODevice to transfer data.

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

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

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

Returns the state of audio processing.

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

This signal is emitted when the device state has changed.

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

Stops the audio input.

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

Stops processing audio data, preserving buffered audio data.

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