7#include "sourceoutput.h"
8#include "sourceoutput_p.h"
16SourceOutput::SourceOutput(
QObject *parent)
18 , d(new SourceOutputPrivate(this))
22SourceOutput::~SourceOutput()
27SourceOutputPrivate::SourceOutputPrivate(SourceOutput *q)
32void SourceOutputPrivate::update(
const pa_source_output_info *info)
34 q->Stream::d->updateStream(info);
35 if (q->Stream::d->m_deviceIndex != info->source) {
36 q->Stream::d->m_deviceIndex = info->source;
37 Q_EMIT q->deviceIndexChanged();
41void SourceOutput::setDeviceIndex(quint32 deviceIndex)
43 Context::instance()->d->setGenericDeviceForStream(index(), deviceIndex, &pa_context_move_source_output_by_index);
46void SourceOutput::setVolume(qint64 volume)
48 qCDebug(PULSEAUDIOQT) <<
"Changing volume of SourceOutput" << name() <<
" to " << volume;
49 Context::instance()->d->setGenericVolume(index(), -1, volume, VolumeObject::d->cvolume(), &pa_context_set_source_output_volume);
52void SourceOutput::setMuted(
bool muted)
54 Context::instance()->d->setGenericMute(index(), muted, &pa_context_set_source_output_mute);
57void SourceOutput::setChannelVolume(
int channel, qint64 volume)
59 Context::instance()->d->setGenericVolume(index(), channel, volume, VolumeObject::d->cvolume(), &pa_context_set_source_output_volume);
62void SourceOutput::setChannelVolumes(
const QList<qint64> &channelVolumes)
64 Context::instance()->d->setGenericVolumes(index(), channelVolumes, VolumeObject::d->m_volume, &pa_context_set_source_output_volume);
The primary namespace of PulseAudioQt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:12:38 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.