我對Java中的音頻有點新鮮。我試圖做的是在播放音頻時,我想重新繪製JComponent,但SourceDataLine會阻止其他所有代碼行,包括其他線程。 這裏是我的play()方法 public void play()
{
final AudioFormat af =new AudioFormat(Note.SAMPLE_RATE, 8, 1, true, true);
我想在我的android應用中導入一些javax.*類,但我一直在Android Studio中收到編譯器錯誤。 我正在使用Ubuntu Linux 13.04。 這裏是我的進口: import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
// Here are the imports I
我正在讀取16位和24位採樣位深度的音頻文件並解析它們以確定它們的長度沒有困難。然而,當讀取32位文件時,我得到 javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file
at javax.sound.sampled.AudioSystem.getAudi