Use the default monitor rather than the default source

This commit is contained in:
Cameron Gutman
2020-01-17 21:11:30 -08:00
parent 15dd6b3cd0
commit f85b6f3596
2 changed files with 4 additions and 1 deletions

View File

@@ -336,6 +336,9 @@ std::unique_ptr<mic_t> microphone(std::uint32_t sample_rate) {
if(!config::audio.sink.empty()) {
audio_sink = config::audio.sink.c_str();
}
else {
audio_sink = "@DEFAULT_MONITOR@";
}
mic->mic.reset(
pa_simple_new(nullptr, "sunshine", pa_stream_direction_t::PA_STREAM_RECORD, audio_sink, "sunshine_record", &mic->ss, nullptr, nullptr, &status)