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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With