@@ -99,6 +99,9 @@ Result audctlSetTargetMute(AudioTarget target, bool mute) {
99
99
}
100
100
101
101
Result audctlIsTargetConnected (bool * connected_out , AudioTarget target ) {
102
+ if (hosversionAtLeast (18 ,0 ,0 ))
103
+ return MAKERESULT (Module_Libnx , LibnxError_IncompatSysVer );
104
+
102
105
const struct {
103
106
u32 target ;
104
107
} in = { target };
@@ -166,6 +169,9 @@ Result audctlSetAudioOutputMode(AudioTarget target, AudioOutputMode mode) {
166
169
}
167
170
168
171
Result audctlSetForceMutePolicy (AudioForceMutePolicy policy ) {
172
+ if (hosversionAtLeast (14 ,0 ,0 ))
173
+ return MAKERESULT (Module_Libnx , LibnxError_IncompatSysVer );
174
+
169
175
const struct {
170
176
u32 policy ;
171
177
} in = { policy };
@@ -174,6 +180,9 @@ Result audctlSetForceMutePolicy(AudioForceMutePolicy policy) {
174
180
}
175
181
176
182
Result audctlGetForceMutePolicy (AudioForceMutePolicy * policy_out ) {
183
+ if (hosversionAtLeast (14 ,0 ,0 ))
184
+ return MAKERESULT (Module_Libnx , LibnxError_IncompatSysVer );
185
+
177
186
struct {
178
187
u32 policy ;
179
188
} out ;
@@ -256,7 +265,7 @@ Result audctlGetHeadphoneOutputLevelMode(AudioHeadphoneOutputLevelMode* mode_out
256
265
}
257
266
258
267
Result audctlAcquireAudioVolumeUpdateEventForPlayReport (Event * event_out ) {
259
- if (hosversionBefore (3 ,0 , 0 ))
268
+ if (! hosversionBetween (3 ,14 ))
260
269
return MAKERESULT (Module_Libnx , LibnxError_IncompatSysVer );
261
270
262
271
Handle tmp_handle ;
@@ -274,7 +283,7 @@ Result audctlAcquireAudioVolumeUpdateEventForPlayReport(Event* event_out) {
274
283
}
275
284
276
285
Result audctlAcquireAudioOutputDeviceUpdateEventForPlayReport (Event * event_out ) {
277
- if (hosversionBefore (3 ,0 , 0 ))
286
+ if (! hosversionBetween (3 ,14 ))
278
287
return MAKERESULT (Module_Libnx , LibnxError_IncompatSysVer );
279
288
280
289
Handle tmp_handle ;
0 commit comments