Changeset View
Changeset View
Standalone View
Standalone View
src/streamrestore.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | namespace QPulseAudio | 25 | namespace QPulseAudio | ||
26 | { | 26 | { | ||
27 | 27 | | |||
28 | StreamRestore::StreamRestore(quint32 index, const QVariantMap &properties, QObject *parent) | 28 | StreamRestore::StreamRestore(quint32 index, const QVariantMap &properties, QObject *parent) | ||
29 | : PulseObject(parent) | 29 | : PulseObject(parent) | ||
30 | , m_muted(false) | 30 | , m_muted(false) | ||
31 | { | 31 | { | ||
32 | memset(&m_volume, 0, sizeof(m_volume)); | ||||
33 | memset(&m_channelMap, 0, sizeof(m_channelMap)); | ||||
34 | | ||||
32 | m_index = index; | 35 | m_index = index; | ||
33 | m_properties = properties; | 36 | m_properties = properties; | ||
34 | } | 37 | } | ||
35 | 38 | | |||
36 | void StreamRestore::update(const pa_ext_stream_restore_info *info) | 39 | void StreamRestore::update(const pa_ext_stream_restore_info *info) | ||
37 | { | 40 | { | ||
38 | const QString infoName = QString::fromUtf8(info->name); | 41 | const QString infoName = QString::fromUtf8(info->name); | ||
39 | if (m_name != infoName) { | 42 | if (m_name != infoName) { | ||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |