File tree 1 file changed +6
-5
lines changed
SoundSwitch.Audio.Manager/Interop/Client/Extended/Factory
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ namespace SoundSwitch.Audio.Manager.Interop.Client.Extended.Factory
7
7
internal static class AudioPolicyConfigFactory
8
8
{
9
9
private const int OS_21H2_VERSION = 21390 ;
10
+ private const int OS_1709_VERSION = 16299 ;
10
11
11
12
public static IAudioPolicyConfig Create ( )
12
13
{
@@ -17,12 +18,12 @@ public static IAudioPolicyConfig Create()
17
18
return new UnsupportedAudioPolicyConfig ( ) ;
18
19
}
19
20
20
- if ( Environment . OSVersion . Version . Build >= OS_21H2_VERSION )
21
+ return Environment . OSVersion . Version . Build switch
21
22
{
22
- return new Post21H2AudioPolicyConfig ( ) ;
23
- }
24
-
25
- return new Pre21H2AudioPolicyConfig ( ) ;
23
+ <= OS_1709_VERSION => new UnsupportedAudioPolicyConfig ( ) ,
24
+ >= OS_21H2_VERSION => new Post21H2AudioPolicyConfig ( ) ,
25
+ _ => new Pre21H2AudioPolicyConfig ( )
26
+ } ;
26
27
} ) ;
27
28
}
28
29
}
You can’t perform that action at this time.
0 commit comments