音频Java剪辑帧位置卡住
很多人都在与java clip类作斗争。我已经指出了一个在我发现的任何其他问题上都没有解决的问题:
.... code to set up clip from AudioSystem.getClip()
// Everything seems to be OK:
clip.open(...);
clip.isRunning(); //false
clip.getMicrosecondLength(); // 2 000 000
clip.getFrameLength(); // 10 000
clip.setFramePosition(0);
// Lets run it:
clip.start();
clip.drain();
clip.getFramePosition(); // STILL 0!
没有声音播放(当然),该功能几乎立即退出,而不是花2秒钟的时间耗尽。这可能是什么原因造成的
共 (0) 个答案