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;
}
AudioRecorder.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:elphelvision_eclipse
作者:
评论列表
文章目录