Sound

Get help using Construct 2

Post » Mon Nov 14, 2011 3:46 pm

Hi again all,

i created a shooter game that plays all sounds fine.

i have taken a copy and tried to modify it for touch control devices. the game runs fine but does not play sound.

all i have altered is the touch control.

Help Plz

any help is always appreciated
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Mon Nov 14, 2011 4:53 pm

Did you use PhoneGap or just browse to the game on the device's browser?

Touch/mobiles don't generally have very good sound support yet, it's something we're still working on.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Mon Nov 14, 2011 4:56 pm

Hey Ashley

Have tried it via Ipad browser and normal android browser, neither worked (sound wise that is)
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Mon Nov 14, 2011 7:46 pm

@Lprez: you can use the solution I present I the main C2 section of the forum.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Nov 15, 2011 10:50 am

Thx Pode. the only issue i can see here is that i do need 2 sounds to play at once, I am going to give it a go although some of that code seem a bit above my lvl of expertese, will give it a crack anyway.

thx for the advice
B
4
G
2
Posts: 30
Reputation: 1,260

Post » Tue Nov 15, 2011 2:01 pm

@Lprez: sadly, you can't play two sounds simultaneously, even with that method.
@Ahsley : I tried to play wave file over an already playing audio background (tried with an .mp3 and a .mp4 on the ipad), and it doesn't work (I remember one of your comment saying that perhaps you would try wav SFX on top of compressed audio background). From my experience, it doesn't work, but I can be wrong in implementing that hack.
I also tried some javascript libs to generate wave audio data (like riffwave.js), it doesn't work either. And Mobile Safari doesn't want to play a wave or an mp3 base64-coded dinamically inserted into the DOM.
So I think we need to wait for Apple to change that on their browser, or find a XCode Project that uses a UIWebView and some tricks to bind the JS audio calls to some native code...
B
33
S
9
G
6
Posts: 709
Reputation: 6,704


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, mystazsea and 16 guests