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

com.sun.media.controls.SilenceSuppressionAdapter Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package com.sun.media.controls;

import java.awt.*;

import javax.media.*;
import javax.media.control.*;

/**
 * TODO: stub.
 *
 * @author Ken Larson
 *
 */
public class SilenceSuppressionAdapter implements SilenceSuppressionControl
{
    protected Codec owner;
    protected boolean silenceSuppression;
    protected boolean isSetable;
    Component component;
    String CONTROL_STRING;

    public SilenceSuppressionAdapter(Codec owner, boolean silenceSuppression,
            boolean isSetable)
    {
        this.owner = owner;
        this.silenceSuppression = silenceSuppression;
        this.isSetable = isSetable;
    }

    public Component getControlComponent()
    {
        return component; // TODO: is null
    }

    public boolean getSilenceSuppression()
    {
        return silenceSuppression;
    }

    public boolean isSilenceSuppressionSupported()
    {
        return isSetable;
    }

    public boolean setSilenceSuppression(boolean silenceSuppression)
    {
        if (isSetable)
            this.silenceSuppression = silenceSuppression;
        return this.silenceSuppression;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy