Search for usage in LXR

PulseAudioQt::Source Class Reference

#include <source.h>

Inheritance diagram for PulseAudioQt::Source:

Public Member Functions

bool isDefault () const override
void setActivePortIndex (quint32 port_index) override
void setChannelVolume (int channel, qint64 volume) override
void setChannelVolumes (const QList< qint64 > &volumes) override
void setDefault (bool enable) override
void setMuted (bool muted) override
void setVolume (qint64 volume) override
void switchStreams () override
- Public Member Functions inherited from PulseAudioQt::Device
quint32 activePortIndex () const
qint64 baseVolume () const
quint32 cardIndex () const
QString description () const
QString formFactor () const
bool isVirtualDevice () const
QList< Port * > ports () const
QVariantMap pulseProperties () const
 Q_ENUM (State)
State state () const
- Public Member Functions inherited from PulseAudioQt::VolumeObject
QStringList channels () const
QList< qint64 > channelVolumes () const
bool isMuted () const
bool isVolumeWritable () const
QStringList rawChannels () const
qint64 volume () const

Additional Inherited Members

- Public Types inherited from PulseAudioQt::Device
enum  State {
  InvalidState = 0 , RunningState , IdleState , SuspendedState ,
- Properties inherited from PulseAudioQt::Device
quint32 activePortIndex
qint64 baseVolume
quint32 cardIndex
bool default
QString description
QString formFactor
QList< Port * > ports
QVariantMap pulseProperties
State state
bool virtualDevice
- Properties inherited from PulseAudioQt::VolumeObject
QStringList channels
QList< qint64 > channelVolumes
bool muted
QStringList rawChannels
qint64 volume
bool volumeWritable
- Signals inherited from PulseAudioQt::Device
void activePortIndexChanged ()
void baseVolumeChanged ()
void cardIndexChanged ()
void defaultChanged ()
void descriptionChanged ()
void formFactorChanged ()
void portsChanged ()
void pulsePropertiesChanged ()
void stateChanged ()
void virtualDeviceChanged ()
- Signals inherited from PulseAudioQt::VolumeObject
void channelsChanged ()
void channelVolumesChanged ()
void isVolumeWritableChanged ()
void mutedChanged ()
void rawChannelsChanged ()
void volumeChanged ()

Detailed Description

A PulseAudio source.

This class is based on https://freedesktop.org/software/pulseaudio/doxygen/structpa__source__info.html.

Definition at line 19 of file source.h.

Constructor & Destructor Documentation

◆ ~Source()

PulseAudioQt::Source::~Source ( )

Definition at line 85 of file source.cpp.

Member Function Documentation

◆ isDefault()

bool PulseAudioQt::Source::isDefault ( ) const

Whether this is the default device.

Implements PulseAudioQt::Device.

Definition at line 60 of file source.cpp.

◆ setActivePortIndex()

void PulseAudioQt::Source::setActivePortIndex ( quint32 port_index)

Set the currently active port, by index.

Implements PulseAudioQt::Device.

Definition at line 45 of file source.cpp.

◆ setChannelVolume()

void PulseAudioQt::Source::setChannelVolume ( int channel,
qint64 volume )

Implements PulseAudioQt::VolumeObject.

Definition at line 55 of file source.cpp.

◆ setChannelVolumes()

void PulseAudioQt::Source::setChannelVolumes ( const QList< qint64 > & volumes)

Implements PulseAudioQt::VolumeObject.

Definition at line 80 of file source.cpp.

◆ setDefault()

void PulseAudioQt::Source::setDefault ( bool enable)

Set whether this is the default device.

Implements PulseAudioQt::Device.

Definition at line 65 of file source.cpp.

◆ setMuted()

void PulseAudioQt::Source::setMuted ( bool muted)

Set whether this object is muted.

Implements PulseAudioQt::VolumeObject.

Definition at line 40 of file source.cpp.

◆ setVolume()

void PulseAudioQt::Source::setVolume ( qint64 volume)

Set the volume for this object.

This affects all channels. The volume must be between PulseAudioQt::minimumVolume() and PulseAudioQt::maximumVolume().

Implements PulseAudioQt::VolumeObject.

Definition at line 35 of file source.cpp.

◆ switchStreams()

void PulseAudioQt::Source::switchStreams ( )

Switch all streams onto this Device Iterates through all relevant streams for the Device type and assigns them to this Device.

For example for a Sink device all SinkInputs known to the daemon will be explicitly switched onto this Sink. Useful for mass-rerouting of streams from different devices onto a specific target device.

Implements PulseAudioQt::Device.

Definition at line 72 of file source.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:55:45 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.