Skip to content

Commit

Permalink
Work on the communications/default device if none set.
Browse files Browse the repository at this point in the history
Communications doesn't exist on macos.
  • Loading branch information
fredemmott committed Feb 12, 2021
1 parent 1ab0434 commit c397c2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/BaseMuteAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@
using json = nlohmann::json;

void from_json(const json& json, MuteActionSettings& settings) {
const auto default_id =
DefaultAudioDevices::GetRealDeviceID(
DefaultAudioDevices::COMMUNICATIONS_INPUT_ID
).empty()
? DefaultAudioDevices::DEFAULT_INPUT_ID
: DefaultAudioDevices::COMMUNICATIONS_INPUT_ID;
settings.deviceID = EPLJSONUtils::GetStringByName(
json, "deviceID", DefaultAudioDevices::COMMUNICATIONS_INPUT_ID);
json, "deviceID", default_id);
settings.feedbackSounds
= EPLJSONUtils::GetBoolByName(json, "feedbackSounds", true);
}
Expand Down
1 change: 1 addition & 0 deletions sdPlugin/propertyinspector/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
} else {
settings.deviceID = defaultInput;
}
saveSettings();
}

const show_device = device => {
Expand Down

0 comments on commit c397c2f

Please sign in to comment.