QAbstractAudioDeviceInfoclass is a base class for audio backends. 更多 …
This class implements the audio functionality for
QAudioDeviceInfo, i.e.,QAudioDeviceInfokeeps aQAbstractAudioDeviceInfoand routes function calls to it. For a description of the functionality thatQAbstractAudioDeviceInfoimplements, you can read the class and functions documentation ofQAudioDeviceInfo.
QAbstractAudioDeviceInfo
¶
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
deviceName
(
)
¶
unicode
Returns the audio device name.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
isFormatSupported
(
format
)
¶
format
–
QAudioFormat
bool
返回 true 若
format
is available from audio device.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
preferredFormat
(
)
¶
Returns the recommended settings to use.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
supportedByteOrders
(
)
¶
Returns the list of currently available byte orders.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
supportedChannelCounts
(
)
¶
Returns the list of currently available channels.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
supportedCodecs
(
)
¶
字符串列表
Returns the list of currently available codecs.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
supportedSampleRates
(
)
¶
Returns the list of currently available sample rates.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
supportedSampleSizes
(
)
¶
Returns the list of currently available sample sizes.
PySide2.QtMultimedia.QAbstractAudioDeviceInfo.
supportedSampleTypes
(
)
¶
Returns the list of currently available sample types.