Skip to content

Commit

Permalink
boost(volume): Keep volume includes both playback and recording devices
Browse files Browse the repository at this point in the history
  • Loading branch information
XangelMusic committed Mar 1, 2024
1 parent 8ef416b commit 03d1aa8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
6 changes: 0 additions & 6 deletions SoundSwitch.Audio.Manager/AudioSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ public void SwitchForegroundProcessTo(string deviceId, ERole role, EDataFlow flo
SwitchProcessTo(deviceId, role, flow, processId);
}

/// <summary>
/// Set the same master volume level from the default audio device to the next device
/// </summary>
/// <param name="deviceId">Id of the device</param>
/// <param name="role">Which role to switch</param>
/// <param name="flow">Which flow to switch</param>
/// <summary>
/// Get the current default endpoint
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private DeviceInfo GetNextDevice(DeviceInfo[] audioDevices, DataFlow type)
/// <param name="device"></param>
public bool SetActiveDevice(DeviceInfo device)
{
if (device.Type != DataFlow.Capture && AppModel.Instance.KeepVolumeEnabled)
if (AppModel.Instance.KeepVolumeEnabled)
{
AudioSwitcher.Instance.SetVolumeFromDefaultDevice(device);
}
Expand Down
4 changes: 2 additions & 2 deletions SoundSwitch/Localization/SettingsStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions SoundSwitch/Localization/SettingsStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Banner: Uses a custom always-on-top frame, useful for in-game usage.</value>
<value>Recording Device</value>
</data>
<data name="tooltipOnHoverOptionBothDevices" xml:space="preserve">
<value>For both Devices</value>
<value>Both Devices</value>
</data>
<data name="audioFileNotFound" xml:space="preserve">
<value>The audio file you selected to be used as notification can't be found. SoundSwitch switched the notification setting back to {0}.</value>
Expand Down Expand Up @@ -487,7 +487,7 @@ Restore the state of the system when the application is closed.</value>
<value>Keep volume level across devices</value>
</data>
<data name="keepVolume.desc" xml:space="preserve">
<value>Keep the same volume level when switching playback devices</value>
<value>Keep the same volume level when switching devices</value>
</data>
<data name="devices.AutoAddNewDevice" xml:space="preserve">
<value>Auto select new devices</value>
Expand Down

0 comments on commit 03d1aa8

Please sign in to comment.