JLayer를 사용하여 인터넷에서 mp3 데이터의 입력 스트림을 재생하고 있습니다. 출력 볼륨을 어떻게 변경합니까?JLayer 사용시 Java 볼륨 변경
나는 그것을 재생이 코드를 사용하고 있습니다 :
URL u = new URL(s);
URLConnection conn = u.openConnection();
conn.setConnectTimeout(Searcher.timeoutms);
conn.setReadTimeout(Searcher.timeoutms);
bitstream = new Bitstream(conn.getInputStream()/*new FileInputStream(quick_file)*/);
System.out.println(bitstream);
decoder = new Decoder();
decoder.setEqualizer(equalizer);
audio = FactoryRegistry.systemRegistry().createAudioDevice();
audio.open(decoder);
for(int i = quick_positions[0]; i > 0; i--){
Header h = bitstream.readFrame();
if (h == null){
return;
}
bitstream.closeFrame();
내 대답을 참조하십시오 http://stackoverflow.com/questions/3134167/adjusting-volume-using-jlayer/17570819#17570819 – pstanton