print Sound Control Info - Java javax.sound.sampled

Java examples for javax.sound.sampled:Sound

Description

print Sound Control Info

Demo Code


//package com.java2s;

import javax.sound.sampled.Control;

public class Main {
    private static void printControlInfo(Control[] controls, int numTabs) {
        for (Control c : controls) {
            System.out.println(indent(numTabs) + c.getType().toString());
        }/*from   w  w w .j  a va2  s . c  o  m*/
    }

    public static String indent(int numTabs) {
        String indent = "";
        while (numTabs-- > 0) {
            indent += "\t";
        }
        return indent;
    }
}

Related Tutorials