Sound not playing on Safari & iOS 6+

Discussion and feedback on Construct 2

Post » Sun Nov 17, 2013 2:44 am

The publisher said others devs have gotten it working by using audio sprite sheets. http://www.ibm.com/developerworks/web/library/wa-ioshtml5/ about 3/4 of the way down.

I'm going to gather more info from those other devs and see how they did it.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Mon Nov 18, 2013 1:44 pm

@Ashley
Just curious if you had any thoughts or ideas on this? Thanks.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Mon Nov 18, 2013 1:46 pm

The article is out of date. Audio sprites are redundant because Safari supports the Web Audio API.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Mon Nov 18, 2013 3:00 pm

@Ashley

Is it possible to include option in Audio object to force preload all audio during loading time ? I`ve uploaded my game to few publisher, they all keep coming back to me about the audio a bit stutter sometimes.

For me, I just need to preload all my audio and put some custom loading screen during preloading.(Kinda like please wait thing)

If I play flash games online, I noticed that almost all of them have a bit long loading time before the game start.

So can I suggest few things in Audio Object properties?

Force preload-
1)preload all Sound Files
2)preload all music files
3)preload all audio
4)disable (default)

All the preloading is done in the first loading screen.This will make loading screen a bit long, but at least it wont effect the gameplay.

Is it ok ?tumira2013-11-18 15:01:38
B
75
S
22
G
14
Posts: 389
Reputation: 12,224

Post » Mon Nov 18, 2013 3:26 pm

Well apparently it still isn't working. Both of their devices are running iOS 6 and both get no sound.

Is there something else I should be doing besides preloading sounds on Layout Startup?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Mon Nov 18, 2013 4:13 pm

Make sure audio is stereo. Use audacity to check (even the asset bundled by Scirra some of them are not stereo. if not mistaken).

Before I upgraded to IOS7 my sound doesn't have any issue with IOS6 except the mono-stereo problem which causes safari to hang and etc. Edit the audio to stereo with audacity seems to fix the audio loop in background and some other things.

I just usually need to do this. Kinda like my SOP with my games.
1)Downgrade to 22Khz
2)Upgrade from mono to stereo
3)I usually just import wav(converted in audacity) file and let Construct 2 do the conversion, if construct 2 complain about something, there is something wrong with the audio.
4)Preload the audio.

Make sure you clear safari cache if you did any updates to the game before playing the game.

Firefox 25 and above got some bugs with Construct 2 music files, so just move the audio from music to sound files until this is fixed..
B
75
S
22
G
14
Posts: 389
Reputation: 12,224

Post » Mon Nov 18, 2013 5:01 pm

Thanks @tumira

B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Tue Nov 19, 2013 10:48 am

I found that removing the sound from the offline.appcache solved all my problems. The now all play fine even after reloading. They wont be available offline but that is better than not working at all.

i will try the stereo and frequency downsampling as well. Thank you!

I am not preloading since I read somewhere that you shouldn't..

It's a jungle out there!
B
7
S
1
Posts: 22
Reputation: 526

Post » Wed Nov 20, 2013 1:46 pm

@jeansson you don't get any crashes or errors when playing offline then?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Thu Nov 21, 2013 7:47 am

Actually, I don't know what will happen, I have only done some quick tests and it looks like it works anyway. But if my options are to only have audio when the user is online compared to no or buggy audio always, I have to choose the first option.
B
7
S
1
Posts: 22
Reputation: 526

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests