|
||||||||||
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(java.io.File fn)
Input a fully qualified file name use the play method to hear it. |
|
UlawCodec(short[] linearArrayOfShort)
|
|
UlawCodec(java.net.URL _url)
|
Method Summary | |
---|---|
void |
delay()
|
void |
displayInternalData()
|
void |
echo()
|
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()
|
boolean |
isPlaying()
|
static void |
main(java.lang.String[] args)
|
void |
normalize()
|
void |
openAu(java.io.InputStream is)
|
void |
openAu(java.net.URL url)
|
void |
openAuFile()
|
void |
openAuFile(java.io.File fileName)
Open the fileName and read in the data as if it were
u-law encoded. |
static java.io.File[] |
openAuFiles()
|
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()
|
static byte[] |
readData(java.io.InputStream is)
Reads in all the data affineTransform once, from any inputstream. |
void |
reverseUlaw()
Shuffle algorithm that does an in-place reverse. |
void |
run()
|
void |
saveAuFile()
|
void |
saveAuFile(java.lang.String fileName)
|
void |
setUlawData(byte[] ulawArrayOfByte)
|
void |
showSampleData()
|
void |
stop()
|
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.io.File 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 openAuFile(java.io.File fileName)
fileName
and read in the data as if it were
u-law encoded. Then turn it into linear PCM data.
fileName
- inputFilepublic static byte[] readData(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static java.io.File[] openAuFiles()
public static void playAuFiles(java.io.File[] f)
public void openAu(java.net.URL url) throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream(java.net.URL url)
public void openAu(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void openAuFile()
public void saveAuFile()
public void saveAuFile(java.lang.String fileName)
public void run()
public void play()
public boolean isPlaying()
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)
public static void main(java.lang.String[] args) throws java.net.MalformedURLException
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |