Format Sound for Cocoonjs?????

Get help using Construct 2

Post » Sun Dec 16, 2012 3:39 am

Hi Everyone,

I'm developing a game for a mobile device using the cocoonjs exporter.

And I have a problem with the music, I'm testing my game on a Samsung Galaxy S3.
And I have used .ogg and .m4a   but neither of these files are playing on the Galaxy S3.

I mean in the Galaxy S3, you don't hear any music.
I checked the Ludei Documentation and I noted the following:

http://wiki.ludei.com/cocoonjs:featurelist
In "AUDIO".
'audio/mpeg'
'audio/mp4'
'audio/x-wav'

It seems that Cocoonjs doesn't play the .ogg format.
BUT in Contruct2 you cannot import .mp4 or .mpeg , so... what can be a possible solution for this??

(The .wav works, but I don't want to use it, these files are to heavy).

Best Regards,
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662

Post » Sun Dec 16, 2012 8:08 pm

UP!
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662

Post » Sun Dec 16, 2012 9:17 pm

I don't really work with mobiles, but a quick search on the forums allowed me to see other devs using ogg with cocoonJS.
What is the browser you're trying your game in ? are you sure it does support webAudio API ?
You might want to contact/check Ludei's (cocoonJS) website for more informations on how to use their product.Kyatric2012-12-16 21:17:59
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Dec 17, 2012 12:44 pm

audio/mp4 is the MIME type for .m4a files (MPEG-4 AAC), so just import those.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon Dec 17, 2012 10:21 pm

Thanks for the guidance/recommendations!!

I'll prove those options.
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas, Yahoo [Bot] and 0 guests