Skip to content

Commit 03d1aa8

Browse files
committed
boost(volume): Keep volume includes both playback and recording devices
1 parent 8ef416b commit 03d1aa8

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

SoundSwitch.Audio.Manager/AudioSwitcher.cs

-6
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,6 @@ public void SwitchForegroundProcessTo(string deviceId, ERole role, EDataFlow flo
177177
SwitchProcessTo(deviceId, role, flow, processId);
178178
}
179179

180-
/// <summary>
181-
/// Set the same master volume level from the default audio device to the next device
182-
/// </summary>
183-
/// <param name="deviceId">Id of the device</param>
184-
/// <param name="role">Which role to switch</param>
185-
/// <param name="flow">Which flow to switch</param>
186180
/// <summary>
187181
/// Get the current default endpoint
188182
/// </summary>

SoundSwitch/Framework/DeviceCyclerManager/DeviceCycler/ADeviceCycler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private DeviceInfo GetNextDevice(DeviceInfo[] audioDevices, DataFlow type)
7979
/// <param name="device"></param>
8080
public bool SetActiveDevice(DeviceInfo device)
8181
{
82-
if (device.Type != DataFlow.Capture && AppModel.Instance.KeepVolumeEnabled)
82+
if (AppModel.Instance.KeepVolumeEnabled)
8383
{
8484
AudioSwitcher.Instance.SetVolumeFromDefaultDevice(device);
8585
}

SoundSwitch/Localization/SettingsStrings.Designer.cs

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SoundSwitch/Localization/SettingsStrings.resx

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Banner: Uses a custom always-on-top frame, useful for in-game usage.</value>
242242
<value>Recording Device</value>
243243
</data>
244244
<data name="tooltipOnHoverOptionBothDevices" xml:space="preserve">
245-
<value>For both Devices</value>
245+
<value>Both Devices</value>
246246
</data>
247247
<data name="audioFileNotFound" xml:space="preserve">
248248
<value>The audio file you selected to be used as notification can't be found. SoundSwitch switched the notification setting back to {0}.</value>
@@ -487,7 +487,7 @@ Restore the state of the system when the application is closed.</value>
487487
<value>Keep volume level across devices</value>
488488
</data>
489489
<data name="keepVolume.desc" xml:space="preserve">
490-
<value>Keep the same volume level when switching playback devices</value>
490+
<value>Keep the same volume level when switching devices</value>
491491
</data>
492492
<data name="devices.AutoAddNewDevice" xml:space="preserve">
493493
<value>Auto select new devices</value>

0 commit comments

Comments
 (0)