Audio problem with CocoonJS

Get help using Construct 2

Post » Thu Apr 18, 2013 4:31 am

Hi everyone!

I'm again have a problem...(and again sorry for bad English)



I'm tested it in web nodekit and in my browser - it's work correctly, but after compilation with CocoonJS, I have a problem with audio...

After restart the level song with tag "GAME" does not continuos playing (Event ?5). It's muted. And start playing again only after clicking: LEVEL1-MENU-LEVEL1.

All songs are imported in *.wav and all playing after compilation to *.apk in my mobile device.

It's a problem construct 2 or CocoonJS? Am trying to do this(that song continuos playing after level restart) with global variebles, but song after restart of the level muted. Help
Image
B
23
S
8
G
2
Posts: 104
Reputation: 4,502

Post » Thu Apr 18, 2013 6:15 am

I believe there are some inconsistent audio issues with Cocoojs and Android:

http://www.scirra.com/forum/cocoonjs-problem-with-music-sound-loading-android_topic60981.html
B
13
S
4
G
3
Posts: 51
Reputation: 3,488

Post » Thu Apr 18, 2013 2:41 pm

Do you have .m4a versions of all your sounds? You don't get them if you import audio on Windows XP or Vista.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Thu Apr 18, 2013 2:50 pm

The key is on the labels
B
11
S
4
G
1
Posts: 410
Reputation: 2,752

Post » Fri Apr 19, 2013 3:18 am

[QUOTE=Ashley] Do you have .m4a versions of all your sounds? You don't get them if you import audio on Windows XP or Vista.[/QUOTE]

Yes, I'm imported wav file, and construct compile it in m4a & ogg format... (Windows 7 x64)

And after some tests I have one more problem with audio (after CocoonJS compilation) - the sounds not muted (does not always work)... In browsers and exe-file it's work correctly... I think it's just a Ludei's compiler error, not construct...
Image
B
23
S
8
G
2
Posts: 104
Reputation: 4,502

Post » Fri Apr 19, 2013 3:56 am

For example:


Work correctly in browsers and exe. Does not work in CocoonJS(android test programm) and after it's cloud compilation in to APK...
Image
B
23
S
8
G
2
Posts: 104
Reputation: 4,502


Return to How do I....?

Who is online

Users browsing this forum: Colludium and 26 guests