Hello, all.
I just noticed that something stopped working in my app. I haven’t pinpointed exactly when it changed, but I figure it was around build 591.
I had code similar to this in my app:
[lua]-- in main.lua
local function set_audio(event)
if (not event or event.type == “applicationResume”)
and audio.getSessionProperty( audio.OtherAudioIsPlaying ) == 1 then
audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)
end
end
Runtime:addEventListener( “system”, set_audio )
set_audio()
– in an included module
function play_music(music, options)
if audio.getSessionProperty( audio.OtherAudioIsPlaying ) ~= 1 then
audio.play(music, options)
end
end[/lua]
…and this worked relatively well for allowing external music to continue playing when starting my app. However, I believe somewhere along the line this broke, because I just noticed my app took over the audio once again.
I know this is an undocumented, unsupported API…but I figured I’d ask if there was any info on what may have changed? …or maybe it’s gone completely? …or maybe it’s still working and the error’s on my end? hehe Thanks in advance for your help. [import]uid: 21712 topic_id: 13925 reply_id: 313925[/import]