public class AudioInputStreamWrapper extends java.lang.Object implements AudioDataCompatible
| コンストラクタと説明 |
|---|
AudioInputStreamWrapper(java.io.InputStream stream,
javax.sound.sampled.AudioFormat fmt,
long length) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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() |
public AudioInputStreamWrapper(java.io.InputStream stream,
javax.sound.sampled.AudioFormat fmt,
long length)
public int channels()
channels インタフェース内 AudioDataCompatiblepublic static AudioInputStreamWrapper createWrapper16(int fs, javax.sound.sampled.Mixer.Info mixer) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableExceptionpublic static AudioInputStreamWrapper createWrapper8(int fs, javax.sound.sampled.Mixer.Info mixer) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableExceptionpublic javax.sound.sampled.AudioFormat getAudioFormat()
getAudioFormat インタフェース内 AudioDataCompatiblepublic javax.sound.sampled.AudioInputStream getAudioInputStream()
public byte[] getByteArrayWaveform()
getByteArrayWaveform インタフェース内 AudioDataCompatiblepublic DoubleArray[] getDoubleArrayWaveform()
getDoubleArrayWaveform インタフェース内 AudioDataCompatiblepublic javax.sound.sampled.TargetDataLine getLine()
public boolean hasNext(int sampleSize)
hasNext インタフェース内 AudioDataCompatiblepublic DoubleArray[] read(long microsecond, int sampleSize)
read インタフェース内 AudioDataCompatiblepublic DoubleArray[] readNext(int sampleSize, int nOverlap) throws java.io.IOException
readNext インタフェース内 AudioDataCompatiblejava.io.IOExceptionpublic int sampleRate()
sampleRate インタフェース内 AudioDataCompatiblepublic boolean supportsRandomAccess()
supportsRandomAccess インタフェース内 AudioDataCompatible