audioDevice QML Value Type

Describes an audio device. 更多...

导入语句: import QtMultimedia

特性

详细描述

The audioDevice value type describes the properties of an audio device that is connected to the system.

The list of audio input or output devices can be queried from the MediaDevices type. To select a certain audio device for input or output set it as the device on AudioInput or AudioOutput .

MediaPlayer {
    audioOutput: AudioOutput {
        device: mediaDevices.defaultAudioOutput
    }
}
MediaDevices {
    id: mediaDevices
}
					

特性文档编制

description : string

Holds a human readable name of the audio device.

Use this string to present the device to the user.


id : string

Holds an identifier for the audio device.

设备名称从属所使用的平台/音频插件。

They are a unique identifier for the audio device.


isDefault : bool

Is true if this is the default audio device.


mode : enumeration

Holds whether this device is an input or output device.

The returned value can be one of the following:

常量 描述
audioDevice.Null A null device.
audioDevice.Input input device.
audioDevice.Output An output device.