TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Extensions
→
iOS Ambient Audio Extension
Pages:
1
iOS Ambient Audio Extension
yoplalala
Posts: 1632
April 01, 2021, 01:13:15 pm
OpenFL iOS Audio Extension
This is the original extension
https://github.com/grapefrukt/extension-ios-audio
I have just adapted it to Stencyl.
Enables setting the iOS audio session as "ambient" to allow playback of external audio while playing a game. It also exposes a way to know if external music is playing or not.
# Stencyl specific usage
Enable the extension and then the app will enable to allow playback of external audio at the start of the Game.
Stencyl Blocks
You can enable or disable ambient music.
You can check if external music is playing ?
On Gitlab
https://gitlab.com/haxe-stencyl/stencyl-extension_os_audio_ambient
PS: I haven't tested this extension for a long time
« Last Edit: April 01, 2021, 01:21:27 pm by yoplalala »
soereide
Posts: 31
April 03, 2021, 03:28:32 am
Thanks!
Just what I needed. Seems to work fine.
Also fixes audio going silent on interruptions, like using Siri, if you add extension.iosaudio.IOSAudio.fixInterrupt(); to a code-block.
yoplalala
Posts: 1632
April 05, 2021, 01:17:53 am
Thanks Soereide ! Do you think there are some people who woudn't fix the silen audio on interrupts ?
It it's the case I'll make a block. If it's not the case I'll make it to call it automatically at the start of the app without needing the blocks.
soereide
Posts: 31
April 08, 2021, 11:04:09 am
Well I haven't had any issues so far, but something might come up.
Probably good to have the option of turning it off.
Pages:
1