ejci / Chrome-Audio-EQ

Audio EQ for Chrome
GNU General Public License v2.0
107 stars 40 forks source link

Added a mono/stereo toggle #2

Closed kevinyuliawan closed 10 years ago

kevinyuliawan commented 10 years ago

Hi Miroslav,

I stumbled upon your EQ extension and thought it was great, and I had the idea of toggling between mono and stereo, for example if you come across a YouTube video and the sound is only coming out of one ear. So I implemented it into your plugin and as far as I can tell, it works!

All I did was add a 'channelCount' and 'channelCountMode' parameter to the master gain node, and if you switch it between 1 and 2, it'll change between mono and stereo. A simple jsfiddle can be found here: http://jsfiddle.net/Cc6t9/

To be honest, this is my first time sending in a pull request on GitHub, as a matter of fact my first time contributing to someone else's code, so apologies if it doesn't make the cut or if it doesn't follow best practices.

Feel free to contact me about anything. You'd probably want to change the look of the radio buttons - I just used the built-in html elements but you would probably want to make your own icons. Like I said, this is my first time, so I'd expect a few words haha. Thanks!

ejci commented 10 years ago

Hi Kevin, Thats a great idea to add support for mono/stereo. At the weekend I will release a new update of the extension and I will merge your pull request there. Thanks you for your contribution.