/**
* Pass the combo box position and select this device
* @param position
* @throws LineUnavailableException
* @throws IllegalArgumentException
*/
private void setDevice(int position) throws LineUnavailableException, IllegalArgumentException {
//Mixer.Info[] mixers = AudioSystem.getMixerInfo();
//AudioFormat audioFmt = getAudioFormat();
Mixer appMixer = mixerList[position];
Info sdlLineInfo = new DataLine.Info(TargetDataLine.class, makeAudioFormat(sampleRate));
stop();
targetDataLine = (TargetDataLine) appMixer.getLine(sdlLineInfo);
init();
}
SourceSoundCardAudio.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:FoxTelem
作者:
评论列表
文章目录