QAbstractAudioInputclass provides access forQAudioInputto access the audio device provided by the plugin. 更多 …
QAudioDeviceInput keeps an instance of
QAbstractAudioInputand routes calls to functions of the same name toQAbstractAudioInput. This means that it isQAbstractAudioInputthat implements the audio functionality. For a description of the functionality, see theQAudioInputclass description.另请参阅
QAbstractAudioInput
¶
PySide2.QtMultimedia.QAbstractAudioInput.
bufferSize
(
)
¶
int
Returns the audio buffer size in milliseconds.
另请参阅
PySide2.QtMultimedia.QAbstractAudioInput.
bytesReady
(
)
¶
int
Returns the amount of audio data available to read in bytes.
PySide2.QtMultimedia.QAbstractAudioInput.
elapsedUSecs
(
)
¶
qint64
Returns the milliseconds since
start()
was called, including time in Idle and suspend states.
PySide2.QtMultimedia.QAbstractAudioInput.
error
(
)
¶
Error
Returns the error state.
PySide2.QtMultimedia.QAbstractAudioInput.
errorChanged
(
error
)
¶
error
–
Error
PySide2.QtMultimedia.QAbstractAudioInput.
format
(
)
¶
返回
QAudioFormat
being used
另请参阅
PySide2.QtMultimedia.QAbstractAudioInput.
notify
(
)
¶
PySide2.QtMultimedia.QAbstractAudioInput.
notifyInterval
(
)
¶
int
Returns the notify interval in milliseconds.
另请参阅
PySide2.QtMultimedia.QAbstractAudioInput.
periodSize
(
)
¶
int
Returns the period size in bytes.
PySide2.QtMultimedia.QAbstractAudioInput.
processedUSecs
(
)
¶
qint64
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
)
¶
value
–
int
Sets the audio buffer size to
value
in milliseconds.
另请参阅
PySide2.QtMultimedia.QAbstractAudioInput.
setFormat
(
fmt
)
¶
fmt
–
QAudioFormat
设置
QAudioFormat
to use to
fmt
. Setting the format is only allowable while in
StoppedState
.
另请参阅
PySide2.QtMultimedia.QAbstractAudioInput.
setNotifyInterval
(
milliSeconds
)
¶
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.
另请参阅
PySide2.QtMultimedia.QAbstractAudioInput.
setVolume
(
arg__1
)
¶
arg__1
–
qreal
PySide2.QtMultimedia.QAbstractAudioInput.
start
(
device
)
¶
device
–
QIODevice
Uses the
device
作为
QIODevice
to transfer data.
PySide2.QtMultimedia.QAbstractAudioInput.
start
(
)
¶
QIODevice
返回指针指向
QIODevice
being used to handle the data transfer. This
QIODevice
can be used to read() audio data directly.
PySide2.QtMultimedia.QAbstractAudioInput.
state
(
)
¶
State
Returns the state of audio processing.
PySide2.QtMultimedia.QAbstractAudioInput.
stateChanged
(
state
)
¶
state
–
State
PySide2.QtMultimedia.QAbstractAudioInput.
stop
(
)
¶
Stops the audio input.
PySide2.QtMultimedia.QAbstractAudioInput.
suspend
(
)
¶
Stops processing audio data, preserving buffered audio data.
PySide2.QtMultimedia.QAbstractAudioInput.
volume
(
)
¶
qreal