Represents an output channel for audio. More...
|CMake:||find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
|qmake:||QT += multimedia|
This class represents an output channel that can be used together with QMediaPlayer or QMediaCaptureSession. It enables the selection of the physical output device to be used, muting the channel, and changing the channel's volume.
This property holds the audio device connected to this output.
The device property represents the audio device this output is connected to. This property can be used to select an output device from the QMediaDevices::audioOutputs() list. You can select the system default audio output by setting this property to a default constructed QAudioDevice object.
|void||setDevice(const QAudioDevice &device)|
This property holds the muted state of the current media.
The value will be
true if the output is muted; otherwise
This property holds the current volume.
The volume is scaled linearly, ranging from
0 (silence) to
1 (full volume).
Note: values outside this range will be clamped.
By default the volume is
UI volume controls should usually be scaled non-linearly. For example, using a logarithmic scale will produce linear changes in perceived loudness, which is what a user would normally expect from a volume control.
See also QAudio::convertVolume().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: