All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.media.GainChangeEvent Maven / Gradle / Ivy

The newest version!
package javax.media;

/**
 * Standard JMF class -- see this class in the JMF Javadoc. Complete.
 *
 * @author Ken Larson
 *
 */
public class GainChangeEvent extends MediaEvent
{
    GainControl eventSrc;

    boolean newMute;
    float newDB;
    float newLevel;

    public GainChangeEvent(GainControl from, boolean mute, float dB, float level)
    {
        super(from);
        this.eventSrc = from;
        this.newMute = mute;
        this.newDB = dB;
        this.newLevel = level;
    }

    public float getDB()
    {
        return newDB;
    }

    public float getLevel()
    {
        return newLevel;
    }

    public boolean getMute()
    {
        return newMute;
    }

    @Override
    public Object getSource()
    {
        return eventSrc;
    }

    public GainControl getSourceGainControl()
    {
        return eventSrc;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy