SourceSoundCardAudio.java 文件源码

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

项目:FoxTelem 作者:
/**
 * 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();

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号