public void openMixer() {
InputStream byteArrayInputStream = new ByteArrayInputStream(playbuffer);
audioInputStream = new AudioInputStream(byteArrayInputStream, audioFormat, playbuffer.length / audioFormat.getFrameSize());
DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
try {
sourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);
sourceDataLine.open(audioFormat);
sourceDataLine.start();
} catch (LineUnavailableException e) {
e.printStackTrace();
}
}
CommunicationHandler.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:POPBL_V
作者:
评论列表
文章目录