Skip to content

AudioDevice

Qt Base Class: QAudioDevice

Signature: QAudioDevice(self) -> None QAudioDevice(self, other: PySide6.QtMultimedia.QAudioDevice) -> None

Base classes

Name Children Inherits
QAudioDevice
PySide6.QtMultimedia
QAudioDevice(self) -> None

⋔ Inheritance diagram

graph TD
  1473573984144["multimedia.AudioDevice"]
  1473573915824["QtMultimedia.QAudioDevice"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573915824 --> 1473573984144
  1473291690208 --> 1473573915824
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QAudioDevice

Source code in prettyqt\multimedia\audiodevice.py
class AudioDevice(multimedia.QAudioDevice):
    def get_mode(self) -> ModeStr:
        return MODE.inverse[self.mode()]

    def get_supported_sample_formats(
        self,
    ) -> list[multimedia.audioformat.SampleFormatStr]:
        return multimedia.audioformat.SAMPLE_FORMAT.get_list(
            self.supportedSampleFormats()
        )

    def get_channel_config(self) -> multimedia.audioformat.ChannelConfigStr:
        return multimedia.audioformat.CHANNEL_CONFIG.inverse[self.channelConfiguration()]

    def get_id(self) -> str:
        return self.id().data().decode()