get music to play on android chrome or ios 6?

0 favourites
  • 3 posts
From the Asset Store
Casual Gameplay Music is a royalty free collection of background music tracks and loops.
  • I have imported ogg and m4a versions of some music and one sound effect.

    set the music to play with a loop on start of layout.

    The sound effect happens when you tap the screen.

    On Chrome on the desktop, it works great.

    On Chrome on Nexus 7, I get no music, and the sound effects are out of sync, e.g. tap once, get good sound, tap immediatly a second time, a long delay before it plays the effect again. If I tap lots of times, I sometimes get one sound, sometimes a second after a long delay.

    On iphone 4, ios 6, I get no music, but the sound effects are perfect, if I tap 3 times quickly, I get 3 sound effects quickly.

    The exported project is here

  • For the delay: use "trigger once" command when you play the sound effect.

    For the music I do not know. I use CocoonJS to export and use my game on Nexus 7 and the music play ok.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Tried adding trigger once, didnt make any difference, unfortunately. so sound effects play correctly on chrome desktop and safari ios, but are broken on Android Chrome on Nexus 7. (and neither mobile will play music)

    I think the nexus is only playing the first and last if you request the same sound effect several times, and between the first and last, is a big pause. So if I tap 5 times, I get the first sound effect, a pause for 3 sound effect durations, then the final sound effect very much late.

    The exported project is here

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)