Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is WebGL able to manipulate sound effectively?

I am building a web app which will have 3D objects and much of sound manipulation in real time. Should I do it with webGL or it would be better with actionscript (in a flex project) ?

I am intersted in good performance (many sounds will be played recurrently and in specific times).

An other factor is that I already know Javascript and webGL but not Actionscript, mxml etc.

Listening to your valuable opinion.

like image 338
ovelix123 Avatar asked Oct 01 '22 12:10

ovelix123


1 Answers

WebGL is not capable of playing sound - however other parts of HTML5 are.

I would highly recommend the HTML 5 audio api, it will allow you to position a listener and sounds, so played sounds will emanate from different directions (e.g. behind you or beside you).

If you wish to loop your sounds, it's as easy as setting a variable on the source node (the thing that plays the sound).

like image 124
Griffork Avatar answered Oct 12 '22 23:10

Griffork