Commit 99fd1b16 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

VolumeMonitor: Don't set stream on source output monitor

There's no way to set a monitor stream on a source *output*,
`set_monitor_stream` only takes a `sink_input_idx`.

There's also no point since by monitoring the device the app
records, we know what the app will hear.
parent 658bbab2
Pipeline #210784 passed with stage
in 54 seconds
......@@ -105,7 +105,6 @@ void VolumeMonitor::createStream()
streamIdx = sinkInput->index();
} else if (auto *sourceOutput = qobject_cast<SourceOutput *>(m_target)) {
sourceIdx = sourceOutput->deviceIndex();
streamIdx = sourceOutput->index();
} else if (auto *sink = qobject_cast<Sink *>(m_target)) {
sourceIdx = sink->monitorIndex();
} else if (auto *source = qobject_cast<Source *>(m_target)) {
......
Supports Markdown
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