public interface AudioFileReader
| Modifier and Type | Method and Description |
|---|---|
SampleAudioFormat |
getSampleAudioFormat()
After reading, the SampleAudioFormat can be obtained.
|
java.util.HashSet<AudioFileType> |
getSupportedFileTypesForReading()
Get the supported file types.
|
float[][] |
readAudioFile(java.lang.String filename)
Single method to read an entire audio file in one go.
|
float[][] readAudioFile(java.lang.String filename)
throws java.io.IOException,
OperationUnsupportedException,
FileFormatException
data - - upon return, this will point to a 2D array containing all the audio data.
The first dimension (data.length) is the number of channels.
The second dimension (data[0].length) is the number of frames.filename - - the name of the file to be readsaf - - upon return, this will point to a SampleAudioFormat object containing the details of the sample data that was read.java.io.IOExceptionOperationUnsupportedExceptionFileFormatExceptionSampleAudioFormat getSampleAudioFormat()
java.util.HashSet<AudioFileType> getSupportedFileTypesForReading()