问题
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();
回答1:
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
来源:https://stackoverflow.com/questions/5123844/change-left-right-balance-on-playing-audio-in-javascript