Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to generate surround sound effect in html5

Here is the problem statement...

I am creating a scene using WebGL(THREE.js). I have different objects around me creating different sounds. Now I want to produce surround sound according to their position.

So if an object is at my right side, then sound from that object should come from right speaker and so on..

Is this possible in HTML5(any browser)

like image 914
milanchandna Avatar asked Jun 11 '12 21:06

milanchandna


1 Answers

AlteredQualia did a test with that.

http://alteredqualia.com/three/examples/webgl_city.html (Chrome only)

Press m to disable the music, and n to enable the helicopter spatial sound.

like image 183
mrdoob Avatar answered Nov 01 '22 09:11

mrdoob