Changeset View
Changeset View
Standalone View
Standalone View
src/volumeobject.cpp
Show All 32 Lines | |||||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | VolumeObject::~VolumeObject() | 35 | VolumeObject::~VolumeObject() | ||
36 | { | 36 | { | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | qint64 VolumeObject::volume() const | 39 | qint64 VolumeObject::volume() const | ||
40 | { | 40 | { | ||
41 | return m_volume.values[0]; | 41 | return pa_cvolume_avg(&m_volume); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | bool VolumeObject::isMuted() const | 44 | bool VolumeObject::isMuted() const | ||
45 | { | 45 | { | ||
46 | return m_muted; | 46 | return m_muted; | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | pa_cvolume VolumeObject::cvolume() const | 49 | pa_cvolume VolumeObject::cvolume() const | ||
Show All 30 Lines |