IOS sound problems since iOS 9.2

Bugs will be moved here once resolved.

Post » Fri Jan 22, 2016 1:33 am

Problem Description
relaunching game after it is killed makes sound distorted on iOS 9.2

Attach a Capx
http://1drv.ms/1Zs4pYu

Description of Capx
plays sound when the button (there is only one) is clicked and after that on another sound is played in loop

Steps to Reproduce Bug
  • Step 1
    export as cordova from the capx
  • Step 2
    create html5 project in intel xdk (source=(empty), use cordova plugin = no (setting it to yes makes no difference), game project = no)
  • Step 3
    build as ios app
  • Step 4
    install on iphone (i use iphone 6 with ios 9.2)
  • Step 5
    start the app and touch the button. you will hearing sound and another sound in loop
  • Step 6
    kill the app (not suspend but kill)
  • Step 7
    restart the app
  • Step 8
    touch the button again

Observed Result
now the sound is distorted

Expected Result
plays sound as it is

Affected Browsers
  • Chrome: (YES/NO)
  • FireFox: (YES/NO)
  • Internet Explorer: (YES/NO)
    This only happens as app on iOS. Haven't been able to repro in Safari inside iphone.

Operating System and Service Pack
Win 10

Construct 2 Version ID
221
B
5
S
1
Posts: 32
Reputation: 439

Post » Fri Jan 22, 2016 5:55 pm

So I thought I had solved this same problem with my app but its not resolved.

When I launch my iOS App the sound will sporadically have problems being distorted.

Sometimes the background music will be fine and sometimes it grainy and choppy sounding.

I am using iPhone 6 with iOS 9.2
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Sat Jan 23, 2016 7:27 pm

Checkout this blog post: http://www.williammalone.com/posts/ios- ... ile-issue/

When I tested the sound in that link using my iPhone the first "touchstart" audio is distorted but the other two are fine. Try that link out on an iPhone to reproduce the grainy audio.

Looks like if you use "touchend" the audio plays fine.
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Sun Jan 24, 2016 6:30 am

I'm having the same issue but in addition to that, my app also crashes and when I restart the sound is distorted.
Only on my iphone 6 ios9.2
B
10
S
1
Posts: 2
Reputation: 531

Post » Sun Jan 24, 2016 8:34 pm

I'm also having exactly the same problem with the sound becoming distorted. Can't seem to find any way to fix it...
B
6
S
1
Posts: 50
Reputation: 500

Post » Sun Jan 24, 2016 8:42 pm

Mine is distorted, too.
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Mon Jan 25, 2016 8:25 am

As you know, i've got that problem on all devices with 9.2+.
- iPhone 5,5s
- iPhone 6,6+,6s,6s+

The background music is distoret, but the jump sound etc. sounds normal.
Last edited by BarthSoftware on Mon Feb 22, 2016 5:24 pm, edited 1 time in total.
B
5
S
1
Posts: 16
Reputation: 409

Post » Mon Jan 25, 2016 5:31 pm

I have the same problem with my background music specifically. Sometimes the sound effects also have issues.

Checkout this blog post: http://www.williammalone.com/posts/ios- ... ile-issue/

When I tested the sound in that link using my iPhone the first "touchstart" audio is distorted but the other two are fine. Try that link out on an iPhone to reproduce the grainy audio.

Looks like if you use "touchend" the audio plays fine.

I tried a lot of different ways in Construct 2 to fix this problem but none of them worked. I didn't see a way out of the box to fix this within Construct 2 without doing some manually coding.
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Fri Feb 05, 2016 9:58 am

I've found a fix, though it has a knock-on effect.

The fix: Export for cordova like you usually would. Now go into the media folder and what you want to do is replace the existing audio with 48khz (sample rate) versions. How I did this was I fed all my audio through https://online-audio-converter.com/ (to change the sample rate you'll have to open up advanced settings).

Now just build in the intel XDK, terminal or however you get it native on your iphone.

The knock-on effect: I've found that on the first play or after the first play in some time, the music just turns into a faint but high pitched buzz. Upon rebooting the app it will all work normally, but as you would imagine this still isn't ideal.

I have noticed that the "preload x" or "preloads complete" doesn't work on ios and I'm curious if this is something to do with it?

Any ideas or suggestions would be great!
Need help finding the right look for your game? I can help! hayes2D.com
B
28
S
5
Posts: 177
Reputation: 2,128

Post » Tue Feb 09, 2016 6:16 pm

@Ashley I am having the same exact issue on my games when loading from an iphone with iOS 9.2.1 installed. On first load, sound is completely distorted, but if the browser refreshed/reloaded all sounds plays properly. Is there a solution for this available in the upcoming release?
B
107
S
20
G
8
Posts: 155
Reputation: 11,741

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest