Revision | 5de598a86e3346dc41659d4e0bb2e41db4adecad (tree) |
---|---|
Zeit | 2023-07-05 04:20:13 |
Autor | Hotshot5000 <sebastian_bugiu@yaho...> |
Commiter | Hotshot5000 |
Added support for starting on xrOS
@@ -246,9 +246,11 @@ public class IOSApplication implements Application { | ||
246 | 246 | Gdx.app.debug("IOSApplication", "resumed"); |
247 | 247 | // workaround for ObjectAL crash problem |
248 | 248 | // see: https://groups.google.com/forum/?fromgroups=#!topic/objectal-for-iphone/ubRWltp_i1Q |
249 | - OALAudioSession audioSession = OALAudioSession.sharedInstance(); | |
250 | - if (audioSession != null) { | |
251 | - audioSession.forceEndInterruption(); | |
249 | + if (config.useAudio) { | |
250 | + OALAudioSession audioSession = OALAudioSession.sharedInstance(); | |
251 | + if (audioSession != null) { | |
252 | + audioSession.forceEndInterruption(); | |
253 | + } | |
252 | 254 | } |
253 | 255 | if (config.allowIpod) { |
254 | 256 | OALSimpleAudio audio = OALSimpleAudio.sharedInstance(); |
@@ -263,9 +265,11 @@ public class IOSApplication implements Application { | ||
263 | 265 | final void willEnterForeground (UIApplication uiApp) { |
264 | 266 | // workaround for ObjectAL crash problem |
265 | 267 | // see: https://groups.google.com/forum/?fromgroups=#!topic/objectal-for-iphone/ubRWltp_i1Q |
266 | - OALAudioSession audioSession = OALAudioSession.sharedInstance(); | |
267 | - if (audioSession != null) { | |
268 | - audioSession.forceEndInterruption(); | |
268 | + if (config.useAudio) { | |
269 | + OALAudioSession audioSession = OALAudioSession.sharedInstance(); | |
270 | + if (audioSession != null) { | |
271 | + audioSession.forceEndInterruption(); | |
272 | + } | |
269 | 273 | } |
270 | 274 | } |
271 | 275 |
@@ -138,6 +138,7 @@ public class IOSDevice { | ||
138 | 138 | |
139 | 139 | addDeviceToMap(deviceMap, "SIMULATOR_32", "i386", 264); |
140 | 140 | addDeviceToMap(deviceMap, "SIMULATOR_64", "x86_64", 264); |
141 | + addDeviceToMap(deviceMap, "VISION_PRO_SIMULATOR", "arm64", 264); | |
141 | 142 | |
142 | 143 | return deviceMap; |
143 | 144 | } |