mars1985's Recent Forum Activity

  • majesticAsFk checkout Construct 2 Release r223 https://www.scirra.com/construct2/releases/r223 which appears to address these audio issues unless you've already moved on to Unity.

  • Thanks Ashley for looking into the Apple iOS Audio bugs! Looks like Construct 2 Release r223 has everything we need to resolve the audio bugs.

    https://www.scirra.com/construct2/releases/r223

    This is all anyone was looking for was a work around so we can release our games for iOS.

    Just tested this beta and it seems to have resolved all of the audio issues I everyone was having!

    Cheers

  • rafaelfe - kimtaein1 - - majesticAsFk - FMFM - FranktheCactus - julianlee - Zoster63 - shortwave - grigrizljac - BarthSoftware - Animate - - matrixreal - Kraudi

    15+ people recently reporting this iPhone / Construct 2 Audio problems that won't allow the release of there app.

    Ashley is that enough for some additional review / support?

    Problems (iPhone):

    A. Bug - lost audio / sound when you minimize app / switch to home screen.

    How to resolve bug A:

    1. Visit the audio object properties and change "Play in background" to Yes.

    (View Image http://pasteboard.co/1Jjxfzt8.png)

    B. Bug - Audio files must be replaced with with 48000khz or the audio is distorted on the 2nd run.

    After exporting your project replace all of your .m4a audio files with converted audio files set the sample rate to 48000khz using the advanced settings here https://online-audio-converter.com/

    (View Image http://pasteboard.co/1JjFqyGb.png)

    C. Bug - first run audio / sound is missing after converting the sample rate to 48000khz. Anytime you run the app after that the audio is fine but the very first time you install the app and run it there is no sound which is unacceptable for production release.

    No solution yet.

    Everyone here loves how easy Construct 2 is to use but if the apps we've built can't be published - most people will seek an alternate platform with better support and stop participating in the community.

    FYI: Found some threads where were able to resolve the audio distortion in code by reloading audio assets or changing the buffer / sample rate - not sure how this can be done in Construct 2

    http://www.html5gamedevs.com/topic/1915 ... nd-broken/

    https://github.com/nehz/ngWebAudio/issues/2 (iPad2 (32bit 9.2.1) cannot reproduce...)

    https://github.com/nehz/ngWebAudio/pull/8

    https://github.com/goldfire/howler.js/issues/434

  • Ashley thanks for the feedback and idea - I am going to test this out later this week.

    Ashley I tested enabling play in background on the Audio properties which resolved the minimize bug where you minimize the the app or switch to the home screen that your app loses sound completely.

    The first run bug (no audio) is still an issues after converting the audio sample rates to 48000khz to resolve the audio distortion.

  • > Looks like if you use "touchend" the audio plays fine. Would it be possible to add this as an action in Construct like we have touchstart on an object?

    >

    We already made this change shortly after iOS 9 came out, so all current versions of C2 are already doing that.

    Ashley there isn't a on object "touchend" like there is for on object "touchstart"? Am I missing something?

    The current verision of Construct 2 only has "On any touch end" rather than "On object touchend". There isn't a way to pick an "object" with touchend currently.

    See image: http://picpaste.com/touch-Qnshj4nS.PNG

    On any touch end needs to be used with an object to be useful.

    Did you review the blog post I submitted using an iPhone with Safari to see how "touchstart" causes audio distortion where as "touchend" resolves this problem? http://www.williammalone.com/posts/ios- ... ile-issue/

    majesticAsFk do you have any thoughts on this - I know you are switching to Unity but does this sound like a plausible solution?

    rafaelfe thanks for the feedback - your game looks really great but kind of useless if you can't resolve the audio / sound problems! Have you considered Unity? I am not familiar with it but sounds like some Construct 2 iOS developers are moving to it.

  • majesticAsFk we have another thread going with a lot of people with the same problem. I've seen this problem posted about over and over without being seriously addressed. I guess if a dozen people start complaining about it then we may see some traction.

    We were able to resolve the audio distortion problem but now the audio won't run on the first run after install.

    Thanks for your feedback - I am looking to switch over to Unity - its unfortunate that this isn't more support for iOS with Construct 2. I really like how easy Construct 2 is to use but if I can't properly export it to iOS then its useless and a waste of time.

  • Ashley - I'm not sure if you saw this on the other thread related to the iOS audio issue but here it is again. I think its worth a look and test on an iPhone in Safari.

    If you open this link http://www.williammalone.com/posts/ios- ... ile-issue/ in an iPhone (I'm on a iPhone 6 running iOS 9.2)

    First "touchstart" audio is distorted but the other two methods are fine. Try that link out on an iPhone in Safari to reproduce the grainy audio.

    Looks like if you use "touchend" the audio plays fine. Would it be possible to add this as an action in Construct like we have touchstart on an object?

    kimtaein1 & It would seem everyone developing for iPhone / iOS 9 using Construct 2 / Cordova is facing this problem - this isn't the first thread I've seen here. I do think its strange I can't find this topic anywhere else on the web that's current except for Scirra forums. I'm glad this topic is finally getting some Construct 2 traction.

  • Ashley thanks for the feedback and idea - I am going to test this out later this week.

  • Thanks and FMFM - did either of you try using PhoneGap before? I've only use Intel XDK with cordova.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • majesticAsFk can you post the .capx?

  • FMFM so I've built a game using Construct 2 with the expectation of exporting it for iOS but it appears there are to many limitations all revolving around audio for me to publish this game.

    The game is ready but the audio has a problem so I can't release it - the first time you install and run the game there is no audio!

    I will probably have to start over and use xCode / Swift 2 which will take much much longer to build.

    Are there any examples of users who have games on the iOS Apple Store using Construct 2 that have audio?

  • and FMFM I may have solved the problem related to no App Sound on the first run.

    So this is my setup by the way.

    iPhone 6 iOS 9.2.1

    Construct 2

    Cordova Export

    Intel XDK

    Export project from construct 2 via Cordova

    Update the audio files in the export to be 48000Khz

    *Update the config.xml file to include the following lines which seem to resolve the first run with no sound problem for me.

    <preference name="AllowInlineMediaPlayback" value="true"/>

    <preference name="MediaPlaybackRequiresUserAction" value="false"/>

    **More information here: http://stackoverflow.com/questions/2676 ... onegap-app and https://cordova.apache.org/docs/en/late ... onfig.html

    Possible there are additional tags that may solve other audio problems.

    One problem that still remains is when you minimize the application you will lose all audio sound until you close the app completely and relaunch.

    UPDATE: this seem liked it worked but I tried it again a few times and its not working. :\</p>

mars1985's avatar

mars1985

Member since 26 Dec, 2011

None one is following mars1985 yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies