public Recorder() {
try {
//Get microphone targetline
AudioFormat format = getAudioFormat();
DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, format, bufferSize);
targetLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
targetLine.open(getAudioFormat(), bufferSize);
} catch (LineUnavailableException e) {
App.logger.w("No supported microphone found.", e);
}
//Initialize the speex encoder
if (!mEncoder.init(1, 8, 16000, 1)) {
App.logger.w("Failed to initialize speex encoder!", null);
}
}
Recorder.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:SoundCenterClient
作者:
评论列表
文章目录