0
votes

The Java documentation says an AudioFormat "A data format tells you how to interpret a series of bytes of "raw" sampled audio data, such as samples that have already been read from a sound file, or samples that have been captured from the microphone input." For AudioFileFormat it says "A file format specifies the structure of a sound file, including not only the format of the raw audio data in the file, but also other information that can be stored in the file."

How does the "raw audio data" in the AudioFileFormat differ from the raw sampled data in the AudioFormat?

I'm sorry I just can't get this right in my head.

Thanks, TW

1
A quick look at the Documentation for AudioFormat tells us this: "The AudioFileFormat class encapsulates an AudioFormat in addition to other, file-specific information." So they're different in that one wraps the other.Dan Temple

1 Answers

0
votes

In a nutshell the AudioFileFormat provides information about the file itself such as file type, file length. The AudioFormat provides information about the actual data in the file such as frame size, sample rate, bit rate.