Examples of Mixer


Examples of javax.sound.sampled.Mixer

    public Mixer getMixer(Mixer.Info info) {
        // if the default device is asked, we provide the mixer
        // with SourceDataLine's
        if (info == null) {
            for (int i = 0; i < infos.length; i++) {
                Mixer mixer = getDevice(infos[i]);
                if (mixer.getSourceLineInfo().length > 0) {
                    return mixer;
                }
            }
        }
        // otherwise get the first mixer that matches
View Full Code Here

Examples of javax.sound.sampled.Mixer

        // get infos about all mixers in the system
        Mixer.Info[] mixers = AudioSystem.getMixerInfo();
        // ask how many lines there are, and plot vendor for each on with at least 2 lines
        for (Mixer.Info mixerInfo : mixers) {
            Mixer mixer = AudioSystem.getMixer(mixerInfo);
            // how many lines of the type we need are available
            int maxLines = mixer.getMaxLines(lineInfo);
            // at least two or not specified, print info
            if (maxLines == AudioSystem.NOT_SPECIFIED || maxLines >= 2) {
                System.out.println("Description: " + mixerInfo.getDescription() + " Vendor: " + mixerInfo.getVendor() + " Name: " + mixerInfo.getName());
                try (SourceDataLine line = (SourceDataLine) mixer.getLine(lineInfo)) {
                    line.open();
                    for (Control control : line.getControls()) {
                        System.out.println("Line has control: " + control);
                    }
                }
View Full Code Here

Examples of machine.Mixer

public class Main {

  public static void main(String args[]){
   
    Mixer mixer1 = new Mixer();
    mixer1.setStartTime(new Time(8,0,0));
    Mixer mixer2 = new Mixer();
    mixer2.setStartTime(new Time(8,0,0));
    Mixer mixer3 = new Mixer();
    mixer3.setStartTime(new Time(8,0,0));
   
    Baker baker1 = new Baker();
    baker1.setStartTime(new Time(8,3,0));
    Baker baker2 = new Baker();
    baker2.setStartTime(new Time(8,3,0));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.