IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

audioDevice QML Value Type

Describes an audio device.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

audioDevice QML Value Type

  • Import Statement: import QtMultimedia

  • Group: audioDevice is part of multimedia_qml, multimedia_audio_qml, qmlvaluetypes

Detailed Description

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.

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

Property Documentation

 

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.

Device names vary depending on the platform/audio plugin being used.

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:

Constant

Description

audioDevice.Null

A null device.

audioDevice.Input

input device.

audioDevice.Output

An output device.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+