PulseAudioQt::Device
#include <device.h>

Public Types | |
enum | State { InvalidState = 0, RunningState, IdleState, SuspendedState, UnknownState } |
Properties | |
quint32 | activePortIndex |
quint32 | cardIndex |
bool | default |
QString | description |
QString | formFactor |
QList< Port * > | ports |
State | state |
![]() | |
QVector< QString > | channels |
QVector< qint64 > | channelVolumes |
bool | muted |
QStringList | rawChannels |
qint64 | volume |
bool | volumeWritable |
Signals | |
void | activePortIndexChanged () |
void | cardIndexChanged () |
void | defaultChanged () |
void | descriptionChanged () |
void | formFactorChanged () |
void | portsChanged () |
void | stateChanged () |
![]() | |
void | channelsChanged () |
void | channelVolumesChanged () |
void | isVolumeWritableChanged () |
void | mutedChanged () |
void | rawChannelsChanged () |
void | volumeChanged () |
Public Member Functions | |
quint32 | activePortIndex () const |
quint32 | cardIndex () const |
QString | description () const |
QString | formFactor () const |
virtual bool | isDefault () const =0 |
QList< Port * > | ports () const |
Q_ENUM (State) | |
virtual void | setActivePortIndex (quint32 port_index)=0 |
virtual void | setDefault (bool enable)=0 |
State | state () const |
![]() | |
QVector< QString > | channels () const |
QVector< qint64 > | channelVolumes () const |
bool | isMuted () const |
bool | isVolumeWritable () const |
QStringList | rawChannels () const |
virtual Q_INVOKABLE void | setChannelVolume (int channel, qint64 volume)=0 |
virtual void | setChannelVolumes (const QVector< qint64 > &channelVolumes)=0 |
virtual void | setMuted (bool muted)=0 |
virtual void | setVolume (qint64 volume)=0 |
qint64 | volume () const |
Detailed Description
Member Enumeration Documentation
◆ State
Member Function Documentation
◆ activePortIndex()
quint32 PulseAudioQt::Device::activePortIndex | ( | ) | const |
The currently active port, by index.
◆ cardIndex()
quint32 PulseAudioQt::Device::cardIndex | ( | ) | const |
Index of the card that owns this device.
◆ description()
QString PulseAudioQt::Device::description | ( | ) | const |
A human readable description of this device.
◆ formFactor()
QString PulseAudioQt::Device::formFactor | ( | ) | const |
The device's form factor.
One of "internal", "speaker", "handset", "tv", "webcam", "microphone", "headset", "headphone", "hands-free", "car", "hifi", "computer", "portable". This is based on PA_PROP_DEVICE_FORM_FACTOR.
◆ isDefault()
|
pure virtual |
Whether this is the default device.
Implemented in PulseAudioQt::Sink, and PulseAudioQt::Source.
◆ ports()
◆ setActivePortIndex()
|
pure virtual |
Set the currently active port, by index.
Implemented in PulseAudioQt::Sink, and PulseAudioQt::Source.
◆ setDefault()
|
pure virtual |
Set whether this is the default device.
Implemented in PulseAudioQt::Sink, and PulseAudioQt::Source.
◆ state()
State PulseAudioQt::Device::state | ( | ) | const |
The state of this device.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:02:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.