Positional Audio

Discussion and feedback on Construct 2

Post » Mon Oct 24, 2011 8:06 am

The construct classic features of positional audio ("play resource at object", "set listener", etc)...would be awesome. I know there are HTML 5 issues with audio, so hopefully this isn't out of the question.


Also, I notice occassional clicks if I have a lot of sounds being triggered. Is there a limit to how many of the same sound can play simultaneously?birdlantern2011-10-24 08:07:40
B
5
G
2
Posts: 40
Reputation: 930

Post » Mon Oct 24, 2011 1:27 pm

For the time being, I believe you can get around this by scaling the volume of an audio playing by the distance of 2 objects; Player and an invisible one representing the source for example.
B
10
S
1
G
2
Posts: 47
Reputation: 1,615

Post » Mon Oct 24, 2011 3:02 pm

As I mentioned in another post HTML5 audio simply can't support this yet, but there may be features on the way which do.

Browser support for audio right now is pretty poor. There are clicks and cut outs, and these are the fault of the browser - there's nothing we can do. Just keep your browser up to date with the latest version and hope they fix it soon.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Oct 24, 2011 11:51 pm

No probs thanks Ashley -- that said, the whole Construct project is brilliant. Great work!
B
5
G
2
Posts: 40
Reputation: 930

Post » Mon Jan 28, 2013 3:25 pm

I did it! (rather bad solution)

Just have 3 ogg files for each sfx..

one center
one left
one right

Now....

1) Decide wich one to use based on your character X position
2.1) give a margin to the center value, do not use x1==x2)
3) Estimate the distance between you character and the sound, to set the volume.

Voila!

PS: This can be emulated in the Construct 2 export process
Sebastian Dieguez
http://about.me/sebasoft
B
4
G
1
Posts: 9
Reputation: 503


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests