java类javax.sound.sampled.Control.Type的实例源码

SoftMixingDataLine.java 文件源码 项目:OpenJSharp 阅读 18 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:OpenJSharp 阅读 19 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:jdk8u-jdk 阅读 19 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:jdk8u-jdk 阅读 23 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:openjdk-jdk10 阅读 19 收藏 0 点赞 0 评论 0
@Override
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:openjdk-jdk10 阅读 19 收藏 0 点赞 0 评论 0
@Override
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
StreamPlayer.java 文件源码 项目:java-stream-player 阅读 22 收藏 0 点赞 0 评论 0
/**
 * Sets Pan value. Line should be opened before calling this method. Linear scale : -1.0 ... +1.0
 *
 * @param fPan
 *            the new pan
 */
public void setPan(double fPan) {

    if (!hasControl(FloatControl.Type.PAN, panControl) || fPan < -1.0 || fPan > 1.0)
        return;
    logger.info(() -> "Pan : " + fPan);
    panControl.setValue((float) fPan);
    generateEvent(Status.PAN, getEncodedStreamPosition(), null);

}
StreamPlayer.java 文件源码 项目:java-stream-player 阅读 22 收藏 0 点赞 0 评论 0
/**
 * Represents a control for the relative balance of a stereo signal between two stereo speakers. The valid range of values is -1.0 (left channel
 * only) to 1.0 (right channel only). The default is 0.0 (centered).
 *
 * @param fBalance
 *            the new balance
 */
public void setBalance(float fBalance) {
    if (hasControl(FloatControl.Type.BALANCE, balanceControl) && fBalance >= -1.0 && fBalance <= 1.0)
        balanceControl.setValue(fBalance);
    else
        try {
            throw new StreamPlayerException(StreamPlayerException.PlayerException.BALANCE_CONTROL_NOT_SUPPORTED);
        } catch (StreamPlayerException ex) {
            logger.log(Level.WARNING, ex.getMessage(), ex);
        }
}
SoftMixingDataLine.java 文件源码 项目:openjdk9 阅读 19 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:openjdk9 阅读 18 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
JavaSoundRenderer.java 文件源码 项目:fmj-sourceforge-mirror 阅读 18 收藏 0 点赞 0 评论 0
private void logControls(Control[] controls)
{
    for (int i = 0; i < controls.length; i++)
    {
        Control control = controls[i];
        logger.fine("control: " + control);
        Type controlType = control.getType();
        if (controlType instanceof CompoundControl.Type)
        {
            logControls(((CompoundControl) control).getMemberControls());
        }
    }
}
SoftMixingDataLine.java 文件源码 项目:jdk8u_jdk 阅读 18 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:jdk8u_jdk 阅读 29 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:lookaside_java-1.8.0-openjdk 阅读 17 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:lookaside_java-1.8.0-openjdk 阅读 21 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
TGAbstractLine.java 文件源码 项目:TuxGuitar-1.3.1-fork 阅读 16 收藏 0 点赞 0 评论 0
public Control getControl(Type type) {
    if( this.controls != null ) {
        for(Control control : this.controls) {
            if( control.getType().toString().equals(type.toString()) ) {
                return control;
            }
        }
    }
    return null;
}
SoftMixingDataLine.java 文件源码 项目:infobip-open-jdk-8 阅读 21 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:infobip-open-jdk-8 阅读 19 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:jdk8u-dev-jdk 阅读 20 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:jdk8u-dev-jdk 阅读 21 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:jdk7-jdk 阅读 20 收藏 0 点赞 0 评论 0
public Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:jdk7-jdk 阅读 24 收藏 0 点赞 0 评论 0
public boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:openjdk-source-code-learn 阅读 24 收藏 0 点赞 0 评论 0
public Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:openjdk-source-code-learn 阅读 20 收藏 0 点赞 0 评论 0
public boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:OLD-OpenJDK8 阅读 22 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:OLD-OpenJDK8 阅读 25 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
SoftMixingDataLine.java 文件源码 项目:openjdk-jdk7u-jdk 阅读 17 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}
SoftMixingDataLine.java 文件源码 项目:openjdk-jdk7u-jdk 阅读 24 收藏 0 点赞 0 评论 0
public final boolean isControlSupported(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return true;
            }
        }
    }
    return false;
}
MP3Player.java 文件源码 项目:JayLayer 阅读 19 收藏 0 点赞 0 评论 0
public Control getControl(Type type){
    initializeSource();
    if (source == null) // Not yet initialized
        return null;

    return source.getControl(type);
}
SoftMixingDataLine.java 文件源码 项目:openjdk-icedtea7 阅读 17 收藏 0 点赞 0 评论 0
public final Control getControl(Type control) {
    if (control != null) {
        for (int i = 0; i < controls.length; i++) {
            if (controls[i].getType() == control) {
                return controls[i];
            }
        }
    }
    throw new IllegalArgumentException("Unsupported control type : "
            + control);
}


问题


面经


文章

微信
公众号

扫码关注公众号