StandardFileFormat describes the file's length in
bytes and the length in sample frames as longs. This will provide an
additional precision unlike the AudioFileFormat.
| Modifier and Type | Field and Description |
|---|---|
| private final long | byteLength
File length in bytes stored as long.
|
| private final long | frameLength
Audio data length in sample frames stored as long.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | StandardFileFormat(final AudioFileFormat.
the type of the audio file type,the format of the audio data contained in the file format, final long the audio data length in sample frames, or
frameLength)AudioSystem.NOT_SPECIFIEDConstructs |
| pack-priv | StandardFileFormat(final AudioFileFormat.
the type of the audio file type,the length of the file in bytes, or
byteLength, final AudioFormat AudioSystem.NOT_SPECIFIEDthe format of the audio data contained in the file format, final long the audio data length in sample frames, or
frameLength)AudioSystem.NOT_SPECIFIEDConstructs |
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: the clipped valuewhich should be clipped value)Replaces the passed value to |
| public final long | Returns: the audio file length in bytesObtains the size in bytes of the entire audio file (not just its audio data). |
| public final long | Returns: the number of sample frames of audio data in the fileObtains the length of the audio data contained in the file, expressed in sample frames. |
| byteLength | back to summary |
|---|---|
| private final long byteLength Hides javax. File length in bytes stored as long. | |
| frameLength | back to summary |
|---|---|
| private final long frameLength Hides javax. Audio data length in sample frames stored as long. | |
| StandardFileFormat | back to summary |
|---|---|
| pack-priv StandardFileFormat(final AudioFileFormat. Constructs
| |
| StandardFileFormat | back to summary |
|---|---|
| pack-priv StandardFileFormat(final AudioFileFormat. Constructs
| |
| clip | back to summary |
|---|---|
| private static int clip(final long value) Replaces the passed value to
| |
| getLongByteLength | back to summary |
|---|---|
| public final long getLongByteLength() Obtains the size in bytes of the entire audio file (not just its audio data). The long precision is used.
| |
| getLongFrameLength | back to summary |
|---|---|
| public final long getLongFrameLength() Obtains the length of the audio data contained in the file, expressed in sample frames. The long precision is used.
| |