How to get music to play in my mobile game?

Get help using Construct 2

Post » Sun Jul 08, 2012 12:33 am

I added music to my game by importing a .wav file which Construct 2 converted into an .ogg. I added an event that plays the music On Start Of Layout. It works well when I preview it in my browser. However, when I export to AppMobi (with DirectCanvas), no music is heard in the simulator nor on my iPod Touch. Is this an issue strictly with AppMobi or is there a Construct 2 solution that I'm overlooking?

Any help is much appreciated!
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Sun Jul 08, 2012 9:20 am

You should try to convert them to AAC-files as well and include them to your project.nemo2012-07-08 09:20:59
B
43
S
5
G
5
Posts: 410
Reputation: 5,742

Post » Sun Jul 08, 2012 12:28 pm

I have a similar question

I have encoded my wave with construct
I can hear my BG music in the simulator, but not on the phone.
Also with Lan only the the Sound FX's work's
Is there a limit for sounds and music on phone ?
I have use the search function here already ,but nothing found.
B
22
S
5
G
5
Posts: 163
Reputation: 5,058

Post » Sun Jul 08, 2012 1:17 pm

i have this same problem with ogg files (no sounds on moblie devices) try import other type of files. In my game i have and i must have two types of one sound- m4a and ogg this two type of files guarantee working sounds and music
B
107
S
25
G
43
Posts: 1,882
Reputation: 33,501

Post » Sun Jul 08, 2012 2:17 pm

btw. I have both(m4a and ogg), but the BG Music is not playing in the phone.
B
22
S
5
G
5
Posts: 163
Reputation: 5,058

Post » Sun Jul 08, 2012 8:42 pm

Got it working by including an m4a. Thanks for the help guys.

@vidi, for your info, I encoded my m4a at 128kbps using Winamp and selecting MP4/aacPlus (HE-AAC) Encoder v1.28a.
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, ColombageEnPLS, doriHOG, rustomatic and 3 guests