PulseAudioQt::Device

Search for usage in LXR

PulseAudioQt::Device Class Referenceabstract

#include <device.h>

Inheritance diagram for PulseAudioQt::Device:

Public Types

enum  State {
  InvalidState = 0, RunningState, IdleState, SuspendedState,
  UnknownState
}
 

Properties

quint32 activePortIndex
 
quint32 cardIndex
 
bool default
 
QString description
 
QString formFactor
 
QVector< Port * > ports
 
State state
 
- Properties inherited from PulseAudioQt::VolumeObject
QVector< QStringchannels
 
QVector< qreal > channelVolumes
 
bool muted
 
QStringList rawChannels
 
qint64 volume
 
bool volumeWritable
 

Signals

void activePortIndexChanged ()
 
void cardIndexChanged ()
 
void defaultChanged ()
 
void descriptionChanged ()
 
void formFactorChanged ()
 
void portsChanged ()
 
void stateChanged ()
 
- Signals inherited from PulseAudioQt::VolumeObject
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
 
QVector< Port * > ports () const
 
 Q_ENUM (State)
 
virtual void setActivePortIndex (quint32 port_index)=0
 
virtual void setDefault (bool enable)=0
 
State state () const
 
- Public Member Functions inherited from PulseAudioQt::VolumeObject
QVector< QStringchannels () const
 
QVector< qreal > channelVolumes () const
 
bool isMuted () const
 
bool isVolumeWritable () const
 
QStringList rawChannels () const
 
virtual void setChannelVolume (int channel, qint64 volume)=0
 
virtual void setMuted (bool muted)=0
 
virtual void setVolume (qint64 volume)=0
 
qint64 volume () const
 

Detailed Description

A PulseAudio device.

Can be either a Sink or Source.

Definition at line 23 of file device.h.

Member Enumeration Documentation

Enumerator
InvalidState 

This state is used when the server does not support sink/source state introspection.

RunningState 

Running, sink/source is playing/recording and used by at least one non-corked sink-input/source-output.

IdleState 

When idle, the sink/source is playing/recording but there is no non-corked sink-input/source-output attached to it.

SuspendedState 

When suspended, actual sink/source access can be closed, for instance.

Definition at line 35 of file device.h.

Member Function Documentation

quint32 PulseAudioQt::Device::activePortIndex ( ) const

The currently active port, by index.

quint32 PulseAudioQt::Device::cardIndex ( ) const

Index of the card that owns this device.

QString PulseAudioQt::Device::description ( ) const

A human readable description of this device.

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.

virtual bool PulseAudioQt::Device::isDefault ( ) const
pure virtual

Whether this is the default device.

Implemented in PulseAudioQt::Sink, and PulseAudioQt::Source.

QVector<Port *> PulseAudioQt::Device::ports ( ) const

The ports associated with this device.

virtual void PulseAudioQt::Device::setActivePortIndex ( quint32  port_index)
pure virtual

Set the currently active port, by index.

Implemented in PulseAudioQt::Sink, and PulseAudioQt::Source.

virtual void PulseAudioQt::Device::setDefault ( bool  enable)
pure virtual

Set whether this is the default device.

Implemented in PulseAudioQt::Sink, and PulseAudioQt::Source.

State PulseAudioQt::Device::state ( ) const

The state of this device.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue May 11 2021 23:05:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.