QAudioInput#
Represents an input channel for audio. More…
Synopsis#
Properties#
Functions#
Slots#
Signals#
def
deviceChanged
()def
mutedChanged
(muted)def
volumeChanged
(volume)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
This class represents an input channel that can be used together with QMediaCaptureSession
. It enables the selection of the physical input device to be used, muting the channel, and changing the channel’s volume.
- class PySide6.QtMultimedia.QAudioInput([parent=None])#
PySide6.QtMultimedia.QAudioInput(deviceInfo[, parent=None])
- Parameters:
deviceInfo –
PySide6.QtMultimedia.QAudioDevice
parent –
PySide6.QtCore.QObject
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtMultimedia.QAudioInput.device: PySide6.QtMultimedia.QAudioDevice#
This property holds The audio device connected to this input..
The device property represents the audio device connected to this input. This property can be used to select an input device from the audioInputs()
list.
You can select the system default audio input by setting this property to a default constructed QAudioDevice
object.
- Access functions:
device
()setDevice
(device)Signal
deviceChanged
()
- property PᅟySide6.QtMultimedia.QAudioInput.muted: bool#
This property holds The muted state of the current media..
The value will be true
if the input is muted; otherwise false
.
- Access functions:
isMuted
()setMuted
(muted)Signal
mutedChanged
(muted)
- property PᅟySide6.QtMultimedia.QAudioInput.volume: float#
The property returns the volume of the audio input.
- Access functions:
volume
()setVolume
(volume)Signal
volumeChanged
(volume)
- PySide6.QtMultimedia.QAudioInput.device()#
- Return type:
See also
Getter of property device
.
- PySide6.QtMultimedia.QAudioInput.deviceChanged()#
Notification signal of property device
.
- PySide6.QtMultimedia.QAudioInput.isMuted()#
- Return type:
bool
Getter of property muted
.
- PySide6.QtMultimedia.QAudioInput.mutedChanged(muted)#
- Parameters:
muted – bool
Notification signal of property muted
.
- PySide6.QtMultimedia.QAudioInput.setDevice(device)#
- Parameters:
device –
PySide6.QtMultimedia.QAudioDevice
See also
Setter of property device
.
Setter of property muted
.
Setter of property volume
.
- PySide6.QtMultimedia.QAudioInput.volume()#
- Return type:
float
See also
Getter of property volume
.
- PySide6.QtMultimedia.QAudioInput.volumeChanged(volume)#
- Parameters:
volume – float
Notification signal of property volume
.