JavaTM 2 Platform
Standard Ed. 6

介面 javax.sound.sampled.Line
的使用

使用 Line 的軟體套件
javax.sound.sampled 提供用於捕獲、處理和回放取樣的音頻資料的介面和類別。 
 

javax.sound.sampled 中 Line 的使用
 

javax.sound.sampled 中 Line 的子介面
 interface Clip
          Clip 介面表示特殊種類別的資料行,該資料行的音頻資料可以在回放前載入,而不是實時串流出。
 interface DataLine
          DataLine 將與介質相關的功能添加到其父級介面 Line。
 interface Mixer
          混頻器是一個具有一行或多行的音頻設備。
 interface Port
          埠號是往返於音頻輸入或輸出線與音頻設備之間的簡單線路。
 interface SourceDataLine
          源資料行是可以寫入資料的資料行。
 interface TargetDataLine
          目標資料行是可以從中讀取音頻資料的某種型別的 DataLine。
 

返回 Line 的 javax.sound.sampled 中的方法
 Line LineEvent.getLine()
          獲得作為此事件的源的音頻行。
static Line AudioSystem.getLine(Line.Info info)
          獲得與指定 Line.Info 物件中的描述比對的行。
 Line Mixer.getLine(Line.Info info)
          獲得可供使用並且與指定 Line.Info 物件中的描述比對的行。
 Line[] Mixer.getSourceLines()
          獲得當前對此混頻器打開的所有源行的集合。
 Line[] Mixer.getTargetLines()
          獲得當前從此混頻器打開的所有目標行的集合。
 

參數型別為 Line 的 javax.sound.sampled 中的方法
 boolean Mixer.isSynchronizationSupported(Line[] lines, boolean maintainSync)
          報告此混頻器是否支持指定行集合的同步。
 void Mixer.synchronize(Line[] lines, boolean maintainSync)
          同步兩個或多個行。
 void Mixer.unsynchronize(Line[] lines)
          釋放指定行的同步。
 

參數型別為 Line 的 javax.sound.sampled 中的建構子
LineEvent(Line line, LineEvent.Type type, long position)
          建構源自指定行的指定型別的新事件。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。