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

QAudioInput Class

Represents an input channel for audio.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAudioInput Class

  • Header: QAudioInput

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Multimedia)

    target_link_libraries(mytarget PRIVATE Qt6::Multimedia)

  • qmake: QT += multimedia

  • Inherited By:

  • Instantiated By: qml-qtmultimedia-audioinput.xml

  • Inherits: QObject

  • Group: QAudioInput is part of multimedia, multimedia_audio

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.

Property Documentation

 

device : 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 QMediaDevices::audioInputs() list.

You can select the system default audio input by setting this property to a default constructed QAudioDevice object.

Access functions:

  • device() const

  • void setDevice(const &device)

Notifier signal:

  • void deviceChanged()

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:

  • bool isMuted() const

  • void setMuted(bool muted)

Notifier signal:

  • void mutedChanged(bool muted)

volume : float

The property returns the volume of the audio input.

Access functions:

  • float volume() const

  • void setVolume(float volume)

Notifier signal:

  • void volumeChanged(float volume)

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