public class AudioFileIn
extends java.lang.Object
Constructor and Description |
---|
AudioFileIn(java.lang.String fileName)
This constructor opens a file and prepares it to be read.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitResolution()
Provide the bit size of the current audio file.
|
int |
getChannels()
Supplies the number of channels in the audio file/data.
|
int |
getDuration()
Access the number of samples in the file.
|
java.lang.String |
getEncoding()
Indicates the type of encoding used by the file.
|
java.lang.String |
getFileType()
Return the type of file, wav, aif, au etc.
|
int |
getSampleBitDepth()
Access the sample size as a number of bits per sample.
|
float[] |
getSampleData()
Provides a single array with the raw sample data in the format of the
source file.
|
int |
getSampleRate()
Access the sample rate.
|
public AudioFileIn(java.lang.String fileName)
fileName
- The name of the file to read, e.g., filename.aifpublic int getBitResolution()
public float[] getSampleData()
public int getChannels()
public java.lang.String getFileType()
public int getSampleRate()
public int getSampleBitDepth()
public java.lang.String getEncoding()
public int getDuration()