Listening to music during gameplay question...

I have used the following code to let players listening to their own music when playing my game:

audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)

But this now (with the new xCode and iOS12) seems to give an error (in the simulator right now) and I’m not sure if it still is working on device.

Can anyone please confirm this code is still working with the latest iOS (and Corona build 3381)?

Or is there a better way to do this?

What is the error?

Rob

Unsupported key: MixMode in audio library

Unsupported key: AmbientMixMode in audio library

I’m pretty sure that warning has been there for a while in the simulator, this isn’t a ‘documented’ feature and could break at any moment, so they put that warning in. ‘Use at your own risk’ basically, but the likelihood is it still works on the device as no-one has reported otherwise.

While this is an unsupported feature, if you can produce a simple demo app that causes the problem, I can ask our team to test it and see if it’s an easy fix.

Rob

What is the error?

Rob

Unsupported key: MixMode in audio library

Unsupported key: AmbientMixMode in audio library

I’m pretty sure that warning has been there for a while in the simulator, this isn’t a ‘documented’ feature and could break at any moment, so they put that warning in. ‘Use at your own risk’ basically, but the likelihood is it still works on the device as no-one has reported otherwise.

While this is an unsupported feature, if you can produce a simple demo app that causes the problem, I can ask our team to test it and see if it’s an easy fix.

Rob