Skip to content

Commit

Permalink
fix(AudioSwitching): Fix audio switching on Windows 11
Browse files Browse the repository at this point in the history
Fixes #799
Fixes SOUNDSWITCH-D3
  • Loading branch information
Belphemur committed Oct 24, 2021
1 parent 5d7846f commit 40f5ba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SoundSwitch.Audio.Manager.Interop.Interface.Policy.Extended;
public interface IAudioPolicyConfig
{
/// <summary>
/// Set the audio enpoint for this device
/// Set the audio endpoint for the process
/// </summary>
/// <param name="processId"></param>
/// <param name="flow"></param>
Expand All @@ -15,7 +15,7 @@ public interface IAudioPolicyConfig
void SetPersistedDefaultAudioEndpoint(uint processId, EDataFlow flow, ERole role, string deviceId);

/// <summary>
/// Get Audio enpoint of the device
/// Get Audio endpoint of the process
/// </summary>
/// <param name="processId"></param>
/// <param name="flow"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace SoundSwitch.Audio.Manager.Interop.Interface.Policy.Extended
{

[Guid("ab3d4648-e242-459f-b02f-541c70306324")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
Expand All @@ -32,10 +31,10 @@ public interface IAudioPolicyConfigFactoryVariant21H2Windows11
int __incomplete__remove_ChatContextChanged();

[PreserveSig]
HRESULT SetPersistedDefaultAudioEndpoint(uint processId, EDataFlow flow, ERole role, HSTRING deviceId);
HRESULT SetPersistedDefaultAudioEndpoint([In] uint processId, [In] EDataFlow flow, [In] ERole role, [In] HSTRING deviceId);

[PreserveSig]
HRESULT GetPersistedDefaultAudioEndpoint(uint processId, EDataFlow flow, ERole role, [Out, MarshalAs(UnmanagedType.HString)] out HSTRING deviceId);
HRESULT GetPersistedDefaultAudioEndpoint([In] uint processId, [In] EDataFlow flow, [In] ERole role, [Out] out HSTRING deviceId);

[PreserveSig]
HRESULT ClearAllPersistedApplicationDefaultEndpoints();
Expand Down

0 comments on commit 40f5ba1

Please sign in to comment.