Changeset View
Changeset View
Standalone View
Standalone View
src/sourceoutput.cpp
Show All 29 Lines | |||||
30 | { | 30 | { | ||
31 | } | 31 | } | ||
32 | 32 | | |||
33 | void SourceOutput::update(const pa_source_output_info *info) | 33 | void SourceOutput::update(const pa_source_output_info *info) | ||
34 | { | 34 | { | ||
35 | updateStream(info); | 35 | updateStream(info); | ||
36 | if (m_deviceIndex != info->source) { | 36 | if (m_deviceIndex != info->source) { | ||
37 | m_deviceIndex = info->source; | 37 | m_deviceIndex = info->source; | ||
38 | emit deviceIndexChanged(); | 38 | Q_EMIT deviceIndexChanged(); | ||
39 | } | 39 | } | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | void SourceOutput::setDeviceIndex(quint32 deviceIndex) | 42 | void SourceOutput::setDeviceIndex(quint32 deviceIndex) | ||
43 | { | 43 | { | ||
44 | context()->setGenericDeviceForStream(index(), deviceIndex, &pa_context_move_source_output_by_index); | 44 | context()->setGenericDeviceForStream(index(), deviceIndex, &pa_context_move_source_output_by_index); | ||
45 | } | 45 | } | ||
46 | 46 | | |||
Show All 16 Lines |