Skip to content

Commit

Permalink
Clang Format Applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Logical-sh committed Sep 16, 2022
1 parent d4a4096 commit 62af7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ void capture(safe::mail_t mail, config_t config, void *channel_data) {
ref->restore_sink = !config.flags[config_t::HOST_AUDIO];

// If the sink is empty (Host has no sink!), definately switch to the virtual.
if (ref->sink.host.empty()) {
if (control->set_sink(*sink)) {
if(ref->sink.host.empty()) {
if(control->set_sink(*sink)) {
return;
}
}
}
// If the client requests audio on the host, don't change the default sink
else if(!config.flags[config_t::HOST_AUDIO] && control->set_sink(*sink)) {
return;
Expand Down
6 changes: 3 additions & 3 deletions src/platform/linux/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class server_t : public audio_control_t {
}

auto sink_name = get_default_sink_name();
sink.host = sink_name;
sink.host = sink_name;

if(index.stereo == PA_INVALID_INDEX) {
index.stereo = load_null(stereo, speaker::map_stereo, sizeof(speaker::map_stereo));
Expand Down Expand Up @@ -396,7 +396,7 @@ class server_t : public audio_control_t {
alarm->ring(-1);
}

if (server_info->default_sink_name) {
if(server_info->default_sink_name) {
sink_name = server_info->default_sink_name;
}
alarm->ring(0);
Expand All @@ -412,7 +412,7 @@ class server_t : public audio_control_t {
std::string monitor_name;
auto alarm = safe::make_alarm<int>();

if (sink_name.empty()) {
if(sink_name.empty()) {
return monitor_name;
}

Expand Down

0 comments on commit 62af7d2

Please sign in to comment.