get sound Mixer Count - Java javax.sound.sampled

Java examples for javax.sound.sampled:Sound

Description

get sound Mixer Count

Demo Code


//package com.java2s;

import javax.sound.sampled.AudioSystem;

import javax.sound.sampled.Mixer;

public class Main {
    public static int getMixerCount() {
        Mixer.Info a[] = AudioSystem.getMixerInfo();
        return a.length;
    }/*w  w  w  .  j a va  2s . c om*/
}

Related Tutorials