playing audio always twice on iOS / xcode problem ???

0 favourites
  • 11 posts
From the Asset Store
This Girls Game allows young fashionistas to develop their taste and skills as a fashion designer.
  • hi all,

    i just use "on touched object" > play audio "/media/button.m4a"

    but on xcode debugger it always play twice (2 time) like picture attached ?

    i would like to know why ? and how to solve it

    its same problem on ejecta, cocconjs and phonebag

    thanks in advance

  • i believe the touch object can trigger twice on some platforms try unselecting the use mouse input option in the touch object

  • i believe the touch object can trigger twice on some platforms try unselecting the use mouse input option in the touch object

    this happen also for example when i use ...

    on start of layout play audio ""

    it always loaded it twice

    look to the picture

    it may be a audio plugin bug

  • Is this using r203? The audio object was just tweaked - could be a bug...

  • i use r202 and its lke that since a long of time

  • Wow, you private messaged me to ask for my opinion, this is the first time I got this, ha ha ha

    Ready for the shocker ?

    Try to add "Trigger Once while True" somewhere in this code of yours, best if on the condition that calls the sound in the first place.

    You are welcome.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow, you private messaged me to ask for my opinion, this is the first time I got this, ha ha ha

    Ready for the shocker ?

    Try to add "Trigger Once while True" somewhere in this code of yours, best if on the condition that calls the sound in the first place.

    You are welcome.

    same thing ... always load twice

  • Alright, then use this SURE WILL WORK technique.

    Assign a tag to this sound you are playing.

    Before you play the sound, call the stop sound function to stop this tag, so that if it does play twice, only one will leave the speakers.

    You are welcome

  • Alright, then use this SURE WILL WORK technique.

    Assign a tag to this sound you are playing.

    Before you play the sound, call the stop sound function to stop this tag, so that if it does play twice, only one will leave the speakers.

    You are welcome

    yes its alternative but not good solution

    there is a bug

  • Ashley

    i think its construct 2 problem because with other engine it work with only one load not double

    maybe problem is with audio plugin?

  • We no longer officially support Ejecta, so this will not be investigated. Consider moving to Cordova.

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