I know the html5 audio stuff is all very new, but is there a way to change the left/right balance on a sound?
Something like this:
var snd = new Audio("test.mp3");
snd.balance = -1; // only left
snd.play();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As of 2021, this is possible using the Web Audio API. See this answer for more info.
Original answer:
Currently, this is not supported.
You can check the w3c spec for supported properties and methods. Note that browsers often provide more / less or different things. But in this case: no browser supports audio balance changes.
http://dev.w3.org/html5/spec/Overview.html#audio