Commit 314d4604 authored by David Edmundson's avatar David Edmundson
Browse files

Fix audio indicator on recording streams

We currently show volume information on device recording and playback,
but for streams only playback was hooked up, not recording.
parent 6935efff
...@@ -36,6 +36,7 @@ void SourceOutput::update(const pa_source_output_info *info) ...@@ -36,6 +36,7 @@ void SourceOutput::update(const pa_source_output_info *info)
if (m_deviceIndex != info->source) { if (m_deviceIndex != info->source) {
m_deviceIndex = info->source; m_deviceIndex = info->source;
Q_EMIT deviceIndexChanged(); Q_EMIT deviceIndexChanged();
Q_EMIT sourceIndexChanged();
} }
} }
...@@ -64,4 +65,9 @@ void SourceOutput::setChannelVolumes(const QVector<qint64> &channelVolumes) ...@@ -64,4 +65,9 @@ void SourceOutput::setChannelVolumes(const QVector<qint64> &channelVolumes)
context()->setGenericVolumes(index(), channelVolumes, cvolume(), &pa_context_set_source_output_volume); context()->setGenericVolumes(index(), channelVolumes, cvolume(), &pa_context_set_source_output_volume);
} }
quint32 SourceOutput::sourceIndex() const
{
return m_deviceIndex;
}
} // QPulseAudio } // QPulseAudio
...@@ -39,6 +39,8 @@ public: ...@@ -39,6 +39,8 @@ public:
void setChannelVolume(int channel, qint64 volume) override; void setChannelVolume(int channel, qint64 volume) override;
void setChannelVolumes(const QVector<qint64> &channelVolumes) override; void setChannelVolumes(const QVector<qint64> &channelVolumes) override;
void setDeviceIndex(quint32 deviceIndex) override; void setDeviceIndex(quint32 deviceIndex) override;
quint32 sourceIndex() const override;
}; };
} // QPulseAudio } // QPulseAudio
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment