how can I set independent gain levels of left and right channels in java

From: steven robinson (jbste_at_hotmail.com)
Date: 04/30/04


Date: 30 Apr 2004 10:19:34 -0700

Here's a snipet of code I wrote that allows overall gain control of a
stereo or mono channel:

private void getGain()
{
        gain = player.getGainControl();//get gain controls
        float level = gain.getLevel();//get present gain level
        System.out.println("Present gain = "+level);
}

private void setGain(float level)
{
.......
}

however, what I would now like to do is control each channel's gain
independently. Does anyone out there, know how to do this, any help or
pointers in the write direction would be appreciated, thanks in
advance.

Steve