jp.crestmuse.cmx.sound
クラス AudioInputStreamWrapper

java.lang.Object
  上位を拡張 jp.crestmuse.cmx.sound.AudioInputStreamWrapper
すべての実装されたインタフェース:
AudioDataCompatible

public class AudioInputStreamWrapper
extends java.lang.Object
implements AudioDataCompatible


メソッドの概要
 int channels()
           
static AudioInputStreamWrapper createWrapper16(int fs, javax.sound.sampled.Mixer.Info mixer)
           
static AudioInputStreamWrapper createWrapper8(int fs, javax.sound.sampled.Mixer.Info mixer)
           
 javax.sound.sampled.AudioFormat getAudioFormat()
           
 javax.sound.sampled.AudioInputStream getAudioInputStream()
           
 byte[] getByteArrayWaveform()
           
 DoubleArray[] getDoubleArrayWaveform()
           
 javax.sound.sampled.TargetDataLine getLine()
           
 boolean hasNext(int sampleSize)
           
 DoubleArray[] read(long microsecond, int sampleSize)
           
 DoubleArray[] readNext(int sampleSize, int nOverlap)
          8 bit only
 int sampleRate()
           
 boolean supportsRandomAccess()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

channels

public int channels()
定義:
インタフェース AudioDataCompatible 内の channels

createWrapper16

public static AudioInputStreamWrapper createWrapper16(int fs,
                                                      javax.sound.sampled.Mixer.Info mixer)
                                               throws javax.sound.sampled.LineUnavailableException
例外:
javax.sound.sampled.LineUnavailableException

createWrapper8

public static AudioInputStreamWrapper createWrapper8(int fs,
                                                     javax.sound.sampled.Mixer.Info mixer)
                                              throws javax.sound.sampled.LineUnavailableException
例外:
javax.sound.sampled.LineUnavailableException

getAudioFormat

public javax.sound.sampled.AudioFormat getAudioFormat()
定義:
インタフェース AudioDataCompatible 内の getAudioFormat

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream()

getByteArrayWaveform

public byte[] getByteArrayWaveform()
定義:
インタフェース AudioDataCompatible 内の getByteArrayWaveform

getDoubleArrayWaveform

public DoubleArray[] getDoubleArrayWaveform()
定義:
インタフェース AudioDataCompatible 内の getDoubleArrayWaveform

getLine

public javax.sound.sampled.TargetDataLine getLine()

hasNext

public boolean hasNext(int sampleSize)
定義:
インタフェース AudioDataCompatible 内の hasNext

read

public DoubleArray[] read(long microsecond,
                          int sampleSize)
定義:
インタフェース AudioDataCompatible 内の read

readNext

public DoubleArray[] readNext(int sampleSize,
                              int nOverlap)
                       throws java.io.IOException
8 bit only

定義:
インタフェース AudioDataCompatible 内の readNext
例外:
java.io.IOException

sampleRate

public int sampleRate()
定義:
インタフェース AudioDataCompatible 内の sampleRate

supportsRandomAccess

public boolean supportsRandomAccess()
定義:
インタフェース AudioDataCompatible 内の supportsRandomAccess