7#include <pulse/volume.h>
9#include "volumeobject.h"
10#include "volumeobject_p.h"
14VolumeObject::VolumeObject(
QObject *parent)
15 : IndexedPulseObject(parent)
16 , d(new VolumeObjectPrivate(this))
20VolumeObjectPrivate::VolumeObjectPrivate(VolumeObject *q)
23 pa_cvolume_init(&m_volume);
26VolumeObject::~VolumeObject()
30qint64 VolumeObject::volume()
const
32 return pa_cvolume_max(&d->m_volume);
35bool VolumeObject::isMuted()
const
40pa_cvolume VolumeObjectPrivate::cvolume()
const
45bool VolumeObject::isVolumeWritable()
const
47 return d->m_volumeWritable;
57 return d->m_rawChannels;
63 ret.
reserve(d->m_volume.channels);
64 for (
int i = 0; i < d->m_volume.channels; ++i) {
65 ret << d->m_volume.values[i];
The primary namespace of PulseAudioQt.
void reserve(qsizetype size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:05 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.