Search in sources :

Example 1 with Control

use of javax.sound.sampled.Control in project Spark by igniterealtime.

the class JavaMixer method createControlChildren.

private void createControlChildren(JavaMixer.ControlNode controlNode) {
    if (controlNode.getControl() instanceof CompoundControl) {
        CompoundControl control = (CompoundControl) controlNode.getControl();
        Control[] aControls = control.getMemberControls();
        for (Control con : aControls) {
            JavaMixer.ControlNode conNode = new JavaMixer.ControlNode(con);
            createControlChildren(conNode);
            controlNode.add(conNode);
        }
    }
}
Also used : CompoundControl(javax.sound.sampled.CompoundControl) BooleanControl(javax.sound.sampled.BooleanControl) FloatControl(javax.sound.sampled.FloatControl) CompoundControl(javax.sound.sampled.CompoundControl) Control(javax.sound.sampled.Control) EnumControl(javax.sound.sampled.EnumControl)

Example 2 with Control

use of javax.sound.sampled.Control in project Spark by igniterealtime.

the class JavaMixer method createPortChildren.

private void createPortChildren(JavaMixer.PortNode portNode) {
    Control[] aControls = portNode.getPort().getControls();
    for (Control aControl : aControls) {
        JavaMixer.ControlNode controlNode = new JavaMixer.ControlNode(aControl);
        createControlChildren(controlNode);
        portNode.add(controlNode);
    }
}
Also used : BooleanControl(javax.sound.sampled.BooleanControl) FloatControl(javax.sound.sampled.FloatControl) CompoundControl(javax.sound.sampled.CompoundControl) Control(javax.sound.sampled.Control) EnumControl(javax.sound.sampled.EnumControl)

Aggregations

BooleanControl (javax.sound.sampled.BooleanControl)2 CompoundControl (javax.sound.sampled.CompoundControl)2 Control (javax.sound.sampled.Control)2 EnumControl (javax.sound.sampled.EnumControl)2 FloatControl (javax.sound.sampled.FloatControl)2