Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Listening to music during gameplay question...
Started by d.mach Sep 27 2018 02:17 AM

4 replies to this topic
sound spottify itunes music problem
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 681 posts
  • Corona SDK

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?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

What is the error?

 

Rob



[TOPIC: post.html]
#3

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 681 posts
  • Corona SDK

What is the error?

 

Rob

 

Unsupported key: MixMode in audio library

Unsupported key: AmbientMixMode in audio library



[TOPIC: post.html]
#4

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,554 posts
  • Corona SDK

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.



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

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




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: sound, spottify, itunes, music, problem