|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsound.ulaw.UlawCodec
public class UlawCodec
Constructor Summary | |
---|---|
UlawCodec()
|
|
UlawCodec(byte[] ulawArrayOfByte)
|
|
UlawCodec(double[] linearArrayOfDouble)
|
|
UlawCodec(short[] linearArrayOfShort)
|
|
UlawCodec(java.lang.String _fn)
Input a fully qualified file name use the play method to hear it. |
|
UlawCodec(java.net.URL _url)
|
Method Summary | |
---|---|
void |
delay()
|
void |
displayInternalData()
|
void |
echo()
|
static java.io.File[] |
getAuFiles()
|
int |
getDistanceBetweenMaxAndMinValues()
|
double[] |
getDoubleArray()
|
double |
getDuration()
|
double |
getFrequency()
|
java.io.InputStream |
getInputStream(java.net.URL url)
|
int |
getLength()
|
static byte[] |
getLinearPCMData(double[] d)
|
int |
getLocation(double value,
int startPoint)
Starting affineTransform the startPoint, scan the data array for the value and return the location in the array. |
int |
getLocationOfMaxValue()
|
int |
getLocationOfMinValue()
|
double |
getMaxValue()
|
double |
getMinValue()
|
byte[] |
getUlawData()
|
static void |
main(java.lang.String[] args)
|
void |
normalize()
|
void |
play()
|
static void |
play(java.net.URL url)
|
static void |
playAuFiles(java.io.File[] f)
|
static void |
playFromFile()
|
void |
printDistanceBetweenMaxAndMinValues()
|
void |
printLocationOfMaxValue()
|
void |
printMaxData()
|
static void |
printSampleData()
|
void |
readAU(java.io.InputStream is)
|
void |
readAU(java.net.URL url)
|
void |
readAUFile()
|
void |
readAUFile(java.lang.String fileName)
Open the fileName and read in the data as if it were
u-law encoded. |
static byte[] |
readData(java.io.InputStream is)
Reads in all the data affineTransform once, from any inputstream. |
void |
reverseUlaw()
|
void |
run()
|
void |
setUlawData(byte[] ulawArrayOfByte)
|
void |
showSampleData()
|
void |
stop()
|
void |
writeAUFile()
|
void |
writeAUFile(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UlawCodec(byte[] ulawArrayOfByte)
public UlawCodec()
public UlawCodec(java.lang.String _fn)
public UlawCodec(java.net.URL _url)
public UlawCodec(short[] linearArrayOfShort)
public UlawCodec(double[] linearArrayOfDouble)
Method Detail |
---|
public void echo()
public void delay()
public void readAUFile(java.lang.String fileName)
fileName
and read in the data as if it were
u-law encoded. Then turn it into linear PCM data.
public static void main(java.lang.String[] args)
public static byte[] readData(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static java.io.File[] getAuFiles()
public static void playAuFiles(java.io.File[] f)
public void readAU(java.net.URL url) throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream(java.net.URL url)
public void readAU(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void readAUFile()
public void writeAUFile()
public void writeAUFile(java.lang.String fileName)
public void run()
public void play()
public void stop()
public static void playFromFile()
public static void play(java.net.URL url)
public double getFrequency()
public void printLocationOfMaxValue()
public int getLocation(double value, int startPoint)
value
- to scan forstartPoint
- location for the start point
public void printDistanceBetweenMaxAndMinValues()
public int getDistanceBetweenMaxAndMinValues()
public int getLocationOfMinValue()
public int getLocationOfMaxValue()
public void printMaxData()
public double getMinValue()
public double getMaxValue()
public void showSampleData()
public void displayInternalData()
public static void printSampleData()
public byte[] getUlawData()
public void setUlawData(byte[] ulawArrayOfByte)
public double[] getDoubleArray()
public int getLength()
public double getDuration()
public void reverseUlaw()
public void normalize()
public static byte[] getLinearPCMData(double[] d)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |