A brand new game
for Windows, Linux, Mac, HTML5, 3DS Homebrew and more
every week,
unless exhausted!
About Games Music Pixelart Poetry Home Patreon Scores JNKPlat Levels
Sound Back On
  20th February, 2019
Finally managed to get Audio working on iOS devices!
Holy Munkies!!


I only went and got the iOS audio to work!!
And not only does it "work", but it works gently in the background without killing all the rest of the audio, so you can have your music playing in the background whilst it goes "flop flop flop" playing all the card sounds!!!

That's taken all bloomin' day to get going, and there's been a ton of twists and turns along the way, but the very last issue was that iOS Safari doesn't like the "detune" function.

if (source.detune!==undefined) {source.detune.value=(sfxpitch-1)*1000;}

Be sure you check that detune is available before you use it, or it'll freeze-crash, instead of just happily going "Hey, Error!" and failing gently like everything else seems to do.

.. Right, now that that's done, time to decide on the best way to organise all the audio.

Views 47, Upvotes 1
Site credits : If you can see it, Jayenkai did it.
(c) Jayenkai 2017 and onwards. RSS feed
Blog - Sound Back On - AGameAWeek