AudioRecorder.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:elphelvision_eclipse 作者:
public AudioFormat[] GetMixerCapabilities(int MixerIndex) {
    Info[] mixerinfo = AudioSystem.getMixerInfo();

    // select the Mixer to record from
    Mixer mixer = AudioSystem.getMixer(mixerinfo[MixerIndex]);
    Line.Info[] Infos = mixer.getTargetLineInfo();
    for (int i = 0; i < Infos.length; i++) {
        if (Infos[i] instanceof DataLine.Info) {
            DataLine.Info dataLineInfo = (DataLine.Info) Infos[i];
            // these are the available formats of the selected mixer
            AudioFormat[] supportedFormats = dataLineInfo.getFormats();
            return supportedFormats;
        }
    }
    return null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号