net.jinx.audio.synth
Class SampleFormat
java.lang.Object
net.jinx.audio.synth.SampleFormat
public class SampleFormat
- extends java.lang.Object
Method Summary |
void |
fill(java.nio.DoubleBuffer buffer,
javax.sound.sampled.AudioInputStream source)
|
double[] |
get(java.nio.DoubleBuffer buffer)
|
double |
getMono(java.nio.DoubleBuffer buffer)
|
double[] |
getStereo(java.nio.DoubleBuffer buffer)
|
boolean |
isMatch(java.nio.DoubleBuffer buffer)
|
boolean |
isMono()
|
boolean |
isStereo()
|
double[] |
peek(java.nio.DoubleBuffer buffer)
|
double |
peekMono(java.nio.DoubleBuffer buffer)
|
double[] |
peekStereo(java.nio.DoubleBuffer buffer)
|
void |
putMono(double v,
java.nio.DoubleBuffer buffer)
|
void |
putStereo(double left,
double right,
java.nio.DoubleBuffer buffer)
|
int |
rate()
|
int |
sampleSize()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleFormat
public SampleFormat(int rate,
boolean isMono)
rate
public int rate()
isMono
public boolean isMono()
isStereo
public boolean isStereo()
sampleSize
public int sampleSize()
isMatch
public boolean isMatch(java.nio.DoubleBuffer buffer)
putMono
public void putMono(double v,
java.nio.DoubleBuffer buffer)
putStereo
public void putStereo(double left,
double right,
java.nio.DoubleBuffer buffer)
peekMono
public double peekMono(java.nio.DoubleBuffer buffer)
peekStereo
public double[] peekStereo(java.nio.DoubleBuffer buffer)
peek
public double[] peek(java.nio.DoubleBuffer buffer)
getMono
public double getMono(java.nio.DoubleBuffer buffer)
getStereo
public double[] getStereo(java.nio.DoubleBuffer buffer)
get
public double[] get(java.nio.DoubleBuffer buffer)
fill
public void fill(java.nio.DoubleBuffer buffer,
javax.sound.sampled.AudioInputStream source)
throws java.io.IOException
- Throws:
java.io.IOException