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.
| 返回类型: | PySide.QtCore.int |
|---|
Returns the audio buffer size in milliseconds.
| 返回类型: | PySide.QtCore.int |
|---|
Returns the amount of audio data available to read in bytes.
| 返回类型: | PySide.QtCore.qint64 |
|---|
Returns the milliseconds since PySide.QtMultimedia.QAbstractAudioInput.start() was called, including time in Idle and suspend states.
| 返回类型: | PySide.QtMultimedia.QAudio.Error |
|---|
Returns the error state.
| 返回类型: | PySide.QtMultimedia.QAudioFormat |
|---|
返回 PySide.QtMultimedia.QAudioFormat being used
| 返回类型: | PySide.QtCore.int |
|---|
Returns the notify interval in milliseconds.
| 返回类型: | PySide.QtCore.int |
|---|
Returns the period size in bytes.
| 返回类型: | PySide.QtCore.qint64 |
|---|
Returns the amount of audio data processed since PySide.QtMultimedia.QAbstractAudioInput.start() was called in milliseconds.
Drops all audio data in the buffers, resets buffers to zero.
Resumes processing audio data after a PySide.QtMultimedia.QAbstractAudioInput.suspend() .
| 参数: | value – PySide.QtCore.int |
|---|
Sets the audio buffer size to value in milliseconds.
| 参数: | milliSeconds – PySide.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.
| 参数: | device – PySide.QtCore.QIODevice |
|---|---|
| 返回类型: | PySide.QtCore.QIODevice |
Uses the device 作为 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.QAudio.State |
|---|
Returns the state of audio processing.
| 参数: | arg__1 – PySide.QtMultimedia.QAudio.State |
|---|
Stops the audio input.
Stops processing audio data, preserving buffered audio data.