QAbstractAudioInput

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

Inheritance diagram of PySide2.QtMultimedia.QAbstractAudioInput

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

QAudioInput

class PySide2.QtMultimedia.QAbstractAudioInput
PySide2.QtMultimedia.QAbstractAudioInput.bufferSize()
Return type:

int

Returns the audio buffer size in milliseconds.

See also

setBufferSize()

PySide2.QtMultimedia.QAbstractAudioInput.bytesReady()
Return type:

int

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

PySide2.QtMultimedia.QAbstractAudioInput.elapsedUSecs()
Return type:

int

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

PySide2.QtMultimedia.QAbstractAudioInput.error()
Return type:

Error

Returns the error state.

PySide2.QtMultimedia.QAbstractAudioInput.errorChanged(error)
Parameters:

errorError

PySide2.QtMultimedia.QAbstractAudioInput.format()
Return type:

PySide2.QtMultimedia.QAudioFormat

Returns the QAudioFormat being used

See also

setFormat()

PySide2.QtMultimedia.QAbstractAudioInput.notify()
PySide2.QtMultimedia.QAbstractAudioInput.notifyInterval()
Return type:

int

Returns the notify interval in milliseconds.

PySide2.QtMultimedia.QAbstractAudioInput.periodSize()
Return type:

int

Returns the period size in bytes.

PySide2.QtMultimedia.QAbstractAudioInput.processedUSecs()
Return type:

int

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

PySide2.QtMultimedia.QAbstractAudioInput.reset()

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

PySide2.QtMultimedia.QAbstractAudioInput.resume()

Resumes processing audio data after a suspend() .

PySide2.QtMultimedia.QAbstractAudioInput.setBufferSize(value)
Parameters:

value – int

Sets the audio buffer size to value in milliseconds.

See also

bufferSize()

PySide2.QtMultimedia.QAbstractAudioInput.setFormat(fmt)
Parameters:

fmtPySide2.QtMultimedia.QAudioFormat

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

See also

format()

PySide2.QtMultimedia.QAbstractAudioInput.setNotifyInterval(milliSeconds)
Parameters:

milliSeconds – int

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

notifyInterval()

PySide2.QtMultimedia.QAbstractAudioInput.setVolume(arg__1)
Parameters:

arg__1 – float

PySide2.QtMultimedia.QAbstractAudioInput.start(device)
Parameters:

devicePySide2.QtCore.QIODevice

Uses the device as the QIODevice to transfer data.

PySide2.QtMultimedia.QAbstractAudioInput.start()
Return type:

PySide2.QtCore.QIODevice

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

PySide2.QtMultimedia.QAbstractAudioInput.state()
Return type:

State

Returns the state of audio processing.

PySide2.QtMultimedia.QAbstractAudioInput.stateChanged(state)
Parameters:

stateState

PySide2.QtMultimedia.QAbstractAudioInput.stop()

Stops the audio input.

PySide2.QtMultimedia.QAbstractAudioInput.suspend()

Stops processing audio data, preserving buffered audio data.

PySide2.QtMultimedia.QAbstractAudioInput.volume()
Return type:

float