setting audio balance from command line

I'd like to set audio balance from command line (linux), I'v looked at 'aumix' (and googled around) but it seems it does not have an option... can you suggest any method?


Solution 1:

With amixer, you can set the volumes of the left and right ALSA channels. For example,

amixer sset Master 80%,20%

will shift the balance toward the left.