DragonAudioOutput QML Type
Audio output controls for a DragonPlayer. More...
| Import Statement: | import org.kde.dragonmediabackend |
| In C++: | DragonAudioOutput |
Properties
Detailed Description
This type cannot be instantiated from QML. Instances are created and owned by DragonPlayer, and accessed through its audioOutput property:
DragonPlayer { id: player Component.onCompleted: player.audioOutput.volume = 0.8 }
The volume property is a perceptual volume value from 0.0 to 1.0; it is mapped logarithmically to the linear gain applied by the audio backend.
See also DragonPlayer::audioOutput.
Property Documentation
backend : enumeration [read-only]
The audio backend in use: DragonAudioOutput.PipeWire, DragonAudioOutput.PulseAudio, DragonAudioOutput.SDL, or DragonAudioOutput.Null. It is constant for the lifetime of the player.
muted : bool
Whether audio output is muted. Muting is independent of volume().
volume : real
The perceptual volume, from 0.0 (silent) to 1.0 (full volume). Mapped logarithmically to the linear gain applied by the audio backend.