JavaTM 2 Platform
Standard Ed. 6

類別 javax.sound.sampled.AudioFileFormat.Type
的使用

使用 AudioFileFormat.Type 的軟體套件
javax.sound.sampled 提供用於捕獲、處理和回放取樣的音頻資料的介面和類別。 
javax.sound.sampled.spi 在提供新音頻設備、聲音檔案 reader 和 writer,或音頻格式轉換器時,提供將為其創建子類別的服務提供者的抽象類別。 
 

javax.sound.sampled 中 AudioFileFormat.Type 的使用
 

宣告為 AudioFileFormat.Type 的 javax.sound.sampled 中的欄位
static AudioFileFormat.Type AudioFileFormat.Type.AIFC
          指定 AIFF-C 檔案。
static AudioFileFormat.Type AudioFileFormat.Type.AIFF
          指定 AIFF 檔案。
static AudioFileFormat.Type AudioFileFormat.Type.AU
          指定 AU 檔案。
static AudioFileFormat.Type AudioFileFormat.Type.SND
          指定 SND 檔案。
static AudioFileFormat.Type AudioFileFormat.Type.WAVE
          指定 WAVE 檔案。
 

返回 AudioFileFormat.Type 的 javax.sound.sampled 中的方法
static AudioFileFormat.Type[] AudioSystem.getAudioFileTypes()
          獲得由系統為其提供檔案寫入支持的檔案型別。
static AudioFileFormat.Type[] AudioSystem.getAudioFileTypes(AudioInputStream stream)
          獲得系統可從指定音頻輸入串流寫入的檔案型別。
 AudioFileFormat.Type AudioFileFormat.getType()
          獲得音頻檔案型別,如 WAVE 或 AU。
 

參數型別為 AudioFileFormat.Type 的 javax.sound.sampled 中的方法
static boolean AudioSystem.isFileTypeSupported(AudioFileFormat.Type fileType)
          指示系統是否提供指定檔案型別的檔案寫入支持。
static boolean AudioSystem.isFileTypeSupported(AudioFileFormat.Type fileType, AudioInputStream stream)
          指示是否可以從指示的音頻輸入串流寫入指定檔案型別的音頻檔案。
static int AudioSystem.write(AudioInputStream stream, AudioFileFormat.Type fileType, File out)
          將表示指定檔案型別的音頻檔案的位元組串流寫入所提供的外部檔案。
static int AudioSystem.write(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out)
          將表示指定檔案型別的音頻檔案的位元組串流寫入所提供的輸出串流。
 

參數型別為 AudioFileFormat.Type 的 javax.sound.sampled 中的建構子
AudioFileFormat(AudioFileFormat.Type type, AudioFormat format, int frameLength)
          建構音頻檔案格式物件。
AudioFileFormat(AudioFileFormat.Type type, AudioFormat format, int frameLength, Map<String,Object> properties)
          建構具有定義的屬性集合的音頻檔案格式物件。
AudioFileFormat(AudioFileFormat.Type type, int byteLength, AudioFormat format, int frameLength)
          建構音頻檔案格式物件。
 

javax.sound.sampled.spi 中 AudioFileFormat.Type 的使用
 

返回 AudioFileFormat.Type 的 javax.sound.sampled.spi 中的方法
abstract  AudioFileFormat.Type[] AudioFileWriter.getAudioFileTypes()
          獲得此音頻檔案 writer 為其提供檔案寫入支持的檔案型別。
abstract  AudioFileFormat.Type[] AudioFileWriter.getAudioFileTypes(AudioInputStream stream)
          獲得此音頻檔案 writer 可以從指定的音頻輸入串流寫入的檔案型別。
 

參數型別為 AudioFileFormat.Type 的 javax.sound.sampled.spi 中的方法
 boolean AudioFileWriter.isFileTypeSupported(AudioFileFormat.Type fileType)
          指示此音頻檔案 writer 是否提供指定檔案型別的檔案寫入支持。
 boolean AudioFileWriter.isFileTypeSupported(AudioFileFormat.Type fileType, AudioInputStream stream)
          指示是否可以從指示的音頻輸入串流寫入指定型別的音頻檔案。
abstract  int AudioFileWriter.write(AudioInputStream stream, AudioFileFormat.Type fileType, File out)
          將表示所指示檔案格式的音頻檔案的位元組串流寫入所提供的外部檔案。
abstract  int AudioFileWriter.write(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out)
          將表示所指示檔案型別的音頻檔案的位元組串流寫入所提供的輸出串流。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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