From bd033f9e1515bda072d48c0006598f2b21521ab7 Mon Sep 17 00:00:00 2001 From: Michael Rogers Date: Mon, 11 Apr 2022 18:12:11 -0500 Subject: [PATCH] Fixed formatting. --- sunshine/platform/linux/audio.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sunshine/platform/linux/audio.cpp b/sunshine/platform/linux/audio.cpp index 7b6f9c6c..2770e515 100644 --- a/sunshine/platform/linux/audio.cpp +++ b/sunshine/platform/linux/audio.cpp @@ -345,7 +345,8 @@ public: auto sink_name = get_default_sink_name(); if(sink_name.empty()) { BOOST_LOG(warning) << "Couldn't find an active sink"sv; - } else { + } + else { sink.host = sink_name; } @@ -438,13 +439,13 @@ public: // 1. Config sink // 2. Last sink swapped to (Usually virtual in this case) // 3. Default Sink - // An attempt was made to always use default to match the switching mechanic, - // but this happens right after the swap so the default returned by PA was not + // An attempt was made to always use default to match the switching mechanic, + // but this happens right after the swap so the default returned by PA was not // the new one just set! auto sink_name = config::audio.sink; if(sink_name.empty()) sink_name = requested_sink; if(sink_name.empty()) sink_name = get_default_sink_name(); - + return ::platf::microphone(mapping, channels, sample_rate, frame_size, get_monitor_name(sink_name)); }