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
インタフェース内 AudioDataCompatible
public static AudioInputStreamWrapper createWrapper16(int fs, javax.sound.sampled.Mixer.Info mixer) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException
public static AudioInputStreamWrapper createWrapper8(int fs, javax.sound.sampled.Mixer.Info mixer) throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException
public javax.sound.sampled.AudioFormat getAudioFormat()
getAudioFormat
インタフェース内 AudioDataCompatible
public javax.sound.sampled.AudioInputStream getAudioInputStream()
public byte[] getByteArrayWaveform()
getByteArrayWaveform
インタフェース内 AudioDataCompatible
public DoubleArray[] getDoubleArrayWaveform()
getDoubleArrayWaveform
インタフェース内 AudioDataCompatible
public javax.sound.sampled.TargetDataLine getLine()
public boolean hasNext(int sampleSize)
hasNext
インタフェース内 AudioDataCompatible
public DoubleArray[] read(long microsecond, int sampleSize)
read
インタフェース内 AudioDataCompatible
public DoubleArray[] readNext(int sampleSize, int nOverlap) throws java.io.IOException
readNext
インタフェース内 AudioDataCompatible
java.io.IOException
public int sampleRate()
sampleRate
インタフェース内 AudioDataCompatible
public boolean supportsRandomAccess()
supportsRandomAccess
インタフェース内 AudioDataCompatible