|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectas.clynx.audio.rep.Sample
public class Sample
The class Sample.java calculates between samplevalue and byterepresentaion.
Constructor Summary | |
---|---|
Sample()
|
Method Summary | |
---|---|
static int |
getSampleValue(byte[] sampleValues,
int offset,
javax.sound.sampled.AudioFormat format)
calculates the samplevalue of the passed byte[] http://www.jsresources.org/faq_audio.html#reconstruct_samples |
static void |
toByteValue(int sample,
byte[] byteArray,
int offset,
javax.sound.sampled.AudioFormat format)
calculates the byte[] of the passed samplevalue http://www.jsresources.org/faq_audio.html#reconstruct_samples |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sample()
Method Detail |
---|
public static int getSampleValue(byte[] sampleValues, int offset, javax.sound.sampled.AudioFormat format)
http://www.jsresources.org/faq_audio.html#reconstruct_samples
sampleValues
- offset
- format
-
public static void toByteValue(int sample, byte[] byteArray, int offset, javax.sound.sampled.AudioFormat format)
http://www.jsresources.org/faq_audio.html#reconstruct_samples
sample
- byteArray
- offset
- format
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |