IOS sound problems since iOS 9.2

Bugs will be moved here once resolved.

Post » Fri Feb 19, 2016 12:36 pm

Of course we have iPhones, when people report iOS bugs the first device I reach for is the iPad Air 2, since I was not clear this is a device-specific issue, which also tend to be rare since iOS is more or less identical across devices. I will keep investigating, but as I already mentioned, it seems likely the problem is with iOS itself so the problem is not to do with our code and we can't directly fix it ourselves, it's a problem with Apple's software.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Fri Feb 19, 2016 4:55 pm

@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 & @0Hayes 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.
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Fri Feb 19, 2016 7:43 pm

Hey @mars1985 , thanks for the heads up!

I'm also a frustrated iOS game dev. I've created an iPhone game using Construct 2 and I'm just waiting for this bug to be fixed (by Scirra or Apple).
Since iOS 9.2 the audio is distorted. I've tried different export and build combinations to find a way to fix it with no success.

Right now I'm using a Cordova Export with a Phone Gap build. The audio is fine on Android but distorted on iPhone.
I've also tried to replace the sound events in my game's javascript file with this "touchend", but I found it impossible to understand that file.

I also would like to ask @Ashley to try to reproduce this error on an iPhone please, not on an iPad. The majority of iOS players are iPhone users. The iPhone also sells more than iPads. Please do it.

A sneak peek of my game, just waiting for this fix to be launched:

Image
B
8
S
1
G
1
Posts: 10
Reputation: 945

Post » Sat Feb 20, 2016 1:32 pm

mars1985 wrote: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.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Sun Feb 21, 2016 9:53 pm

Ashley wrote:
mars1985 wrote: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
Image

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.
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Sun Feb 21, 2016 11:21 pm

@rafaelfe - @kimtaein1 - @0Hayes - @majesticAsFk - @FMFM - @FranktheCactus - @julianlee - @Zoster63 - @shortwave - @grigrizljac - @BarthSoftware - @Animate - @Silverforce - @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)
Image

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)
Image

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
Last edited by mars1985 on Mon Feb 22, 2016 12:59 pm, edited 1 time in total.
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Mon Feb 22, 2016 7:30 am

Thank you for this post @mars1985

I hope this gets resolved very soon.
In the meantime I stopped getting deeper into my game now and installed Unity. Will look into it and may switch over to it as it seems it is really good when it comes to iOS Dev.
Working on "EVERBLAST"
Image
B
31
S
6
Posts: 221
Reputation: 2,837

Post » Mon Feb 22, 2016 9:23 am

I think that we have no choice. Scirra not care about the "small" problems. Also installed Unity on my Mac.

Edit: Scirra can not reproduce the bug.. lol. My grandmother can reproduce it.
B
4
S
1
Posts: 49
Reputation: 452

Post » Mon Feb 22, 2016 10:58 am

Has anybody contacted apple or cordova yet?

As you've all noticed this has been effecting most engines and frameworks that use cordova/html5. It does however look like all of them have implemented a fix engine/framework/export side.

However, this does not seem to be the case as @Ashley doesn't want to rebuild the audio context in the export to fix this for fears of breaking other platforms and features. At least not until it is undeniable that the problem will only be resolved on construct 2's side.

Also Ashley, have you managed to successfully test the bug yet?

If you're not able to replicate this bug on an iPhone running iOS 9.2+ then you might have found a fix. If so, can you please describe anything you're doing differently than the repo on page one?

We've all put allot of time into our projects as you have the construct 2 framework. If this bug is not fixed, our time is wasted and if your engine doesn't work, then so is yours.

If the 15+ people effected on this thread aren't enough to warrant effort and time on this I'm happy to contact everybody I can find that is targeting iOS with a construct 2 built game and warn them of the problem they will inevitably be facing.
Need help finding the right look for your game? I can help! hayes2D.com
B
28
S
5
Posts: 176
Reputation: 2,128

Post » Mon Feb 22, 2016 4:31 pm

HI

We are working on a game for the mobile market, IOS and Android.

At the moment we have simply imported a WAV file of a music track we have made, C2 makes it own mp4 and ogg files and we play this via the start layout and play audio tool.

However on android it works fine, but on IOS devices we either get no sound at all, or sometimes a broken distorted tinny sound for a few seconds before the sounds disappears.

Is this related to the same issues in this thread? we are runing IOS 9.2
B
7
S
1
Posts: 34
Reputation: 525

PreviousNext

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests