8#include "sinkinput_p.h"
16SinkInput::SinkInput(
QObject *parent)
18 , d(new SinkInputPrivate(this))
22SinkInputPrivate::SinkInputPrivate(SinkInput *q)
27SinkInput::~SinkInput()
31void SinkInputPrivate::update(
const pa_sink_input_info *info)
33 q->Stream::d->updateStream(info);
34 if (q->Stream::d->m_deviceIndex != info->sink) {
35 q->Stream::d->m_deviceIndex = info->sink;
36 Q_EMIT q->deviceIndexChanged();
40void SinkInput::setDeviceIndex(quint32 deviceIndex)
42 Context::instance()->d->setGenericDeviceForStream(index(), deviceIndex, &pa_context_move_sink_input_by_index);
45void SinkInput::setVolume(qint64 volume)
47 qCDebug(PULSEAUDIOQT) <<
"Changing volume of SinkInput" << name() <<
" to " << volume;
48 Context::instance()->d->setGenericVolume(index(), -1, volume, VolumeObject::d->cvolume(), &pa_context_set_sink_input_volume);
51void SinkInput::setMuted(
bool muted)
53 Context::instance()->d->setGenericMute(index(), muted, &pa_context_set_sink_input_mute);
56void SinkInput::setChannelVolume(
int channel, qint64 volume)
58 Context::instance()->d->setGenericVolume(index(), channel, volume, VolumeObject::d->cvolume(), &pa_context_set_sink_input_volume);
61void SinkInput::setChannelVolumes(
const QList<qint64> &channelVolumes)
63 Context::instance()->d->setGenericVolumes(index(), channelVolumes, VolumeObject::d->m_volume, &pa_context_set_sink_input_volume);
The primary namespace of PulseAudioQt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:21 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.