Package javax.sound.sampled

Examples of javax.sound.sampled.Control


        try {
            SourceDataLine line = (SourceDataLine)mixer.getLine(lInfo[0]);

            // get Controls
            Control controls[] = line.getControls();
            System.out.println("    available Controls on Line 0:");
            for (int i = 0; i < controls.length; i++)
                System.out.println("        Control["+i+"]: "+controls[i]);

            System.out.println("");
View Full Code Here


                                String strControlName = control.getType().toString();
//System.out.println("Control compound: " +  strControlName);
                                Control[] subControls = control.getMemberControls();
                                for (int s = 0; s < subControls.length; s++)
                                {
                                    Control con = subControls[s];
                                    if (con instanceof FloatControl)
                                    {
                                        FloatControl subCon = (FloatControl)con;
                                        String strControlSubName = subCon.getType().toString();
                                        if (!isVolumne(subCon)) continue;
View Full Code Here

        System.out.println(info);
        lineIn = (Port) mixer.getLine(Port.Info.MICROPHONE);
        lineIn.open();
        Control[] controls = lineIn.getControls();
        for (int j = 0; j < controls.length; j++) {
          Control control = controls[j];
          System.out.println(control);
        }
//        volCtrl = (FloatControl) lineIn
//            .getControl(FloatControl.Type.VOLUME);
      }
View Full Code Here

TOP

Related Classes of javax.sound.sampled.Control

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.