Table Of Contents

Previous topic

QAudioEnginePlugin

Next topic

QAbstractAudioOutput

QAbstractAudioInput

Detailed Description

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

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

class PySide.QtMultimedia.QAbstractAudioInput
PySide.QtMultimedia.QAbstractAudioInput.bufferSize()
Return type:PySide.QtCore.int

Returns the audio buffer size in milliseconds.

PySide.QtMultimedia.QAbstractAudioInput.bytesReady()
Return type:PySide.QtCore.int

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

PySide.QtMultimedia.QAbstractAudioInput.elapsedUSecs()
Return type:PySide.QtCore.qint64

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

PySide.QtMultimedia.QAbstractAudioInput.error()
Return type:PySide.QtMultimedia.QAudio.Error

Returns the error state.

PySide.QtMultimedia.QAbstractAudioInput.format()
Return type:PySide.QtMultimedia.QAudioFormat

Returns the PySide.QtMultimedia.QAudioFormat being used

PySide.QtMultimedia.QAbstractAudioInput.notify()
PySide.QtMultimedia.QAbstractAudioInput.notifyInterval()
Return type:PySide.QtCore.int

Returns the notify interval in milliseconds.

PySide.QtMultimedia.QAbstractAudioInput.periodSize()
Return type:PySide.QtCore.int

Returns the period size in bytes.

PySide.QtMultimedia.QAbstractAudioInput.processedUSecs()
Return type:PySide.QtCore.qint64

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

PySide.QtMultimedia.QAbstractAudioInput.reset()

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

PySide.QtMultimedia.QAbstractAudioInput.resume()

Resumes processing audio data after a PySide.QtMultimedia.QAbstractAudioInput.suspend() .

PySide.QtMultimedia.QAbstractAudioInput.setBufferSize(value)
Parameters:valuePySide.QtCore.int

Sets the audio buffer size to value in milliseconds.

PySide.QtMultimedia.QAbstractAudioInput.setNotifyInterval(milliSeconds)
Parameters:milliSecondsPySide.QtCore.int

Sets the interval for PySide.QtMultimedia.QAbstractAudioInput.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.

PySide.QtMultimedia.QAbstractAudioInput.start(device)
Parameters:devicePySide.QtCore.QIODevice
Return type:PySide.QtCore.QIODevice

Uses the device as the PySide.QtCore.QIODevice to transfer data. If device is null then the class creates an internal PySide.QtCore.QIODevice . Returns a pointer to the PySide.QtCore.QIODevice being used to handle the data transfer. This PySide.QtCore.QIODevice can be used to read() audio data directly. Passing a PySide.QtCore.QIODevice allows the data to be transferred without any extra code.

PySide.QtMultimedia.QAbstractAudioInput.state()
Return type:PySide.QtMultimedia.QAudio.State

Returns the state of audio processing.

PySide.QtMultimedia.QAbstractAudioInput.stateChanged(arg__1)
Parameters:arg__1PySide.QtMultimedia.QAudio.State
PySide.QtMultimedia.QAbstractAudioInput.stop()

Stops the audio input.

PySide.QtMultimedia.QAbstractAudioInput.suspend()

Stops processing audio data, preserving buffered audio data.