com.ritolaaudio.simplewavio.files.riff.wave
Class RiffChunk_fmt_
java.lang.Object
com.ritolaaudio.simplewavio.files.RiffChunk
com.ritolaaudio.simplewavio.files.riff.wave.RiffChunk_fmt_
- All Implemented Interfaces:
- java.lang.Comparable<RiffChunk>
public class RiffChunk_fmt_
- extends RiffChunk
Methods inherited from class com.ritolaaudio.simplewavio.files.RiffChunk |
addChildChunk, childrenToData, compareTo, getChildChunk, parseRiff, ParseRiff, printChildChunks, readUnsignedInt, readUnsignedShort, sizeEstimateInBytes, toData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RiffChunk_fmt_
public RiffChunk_fmt_()
fromData
public void fromData(java.nio.ByteBuffer fileBuffer)
- Specified by:
fromData
in class RiffChunk
_toData
public void _toData(java.nio.ByteBuffer buffer)
- Description copied from class:
RiffChunk
- DO NOT INVOKE OUTSIDE RIFF CHUNK OBJECTS
Called internally when recursively building a chunk hierarchy from RIFF data.
- Specified by:
_toData
in class RiffChunk
getOrderID
public int getOrderID()
- Description copied from class:
RiffChunk
- Used for ensuring proper tag order when writing RIFF files because some utilities expect a specific tag order. (lower is earlier)
- Overrides:
getOrderID
in class RiffChunk
_sizeEstimateInBytes
public int _sizeEstimateInBytes()
- Description copied from class:
RiffChunk
- DO NOT INVOKE OUTSIDE RIFFCHUNK OBJECTS
Called internally when pre-calculating the size of a RIFF file. This portion is developer-specified.
- Specified by:
_sizeEstimateInBytes
in class RiffChunk
- Returns:
getChunkSize
public long getChunkSize()
- Returns:
- the size of this subchunk (internal use) minus the 4 bytes used for this variable
setSize
public void setSize(long size)
- Not audio-related: Refers to the RIFF subchunk data size.
- Parameters:
set
- the size of this RIFF subchunk, not including the 4 bytes used for this variable.
getSampleRate
public long getSampleRate()
- Returns:
- the sampleRate
setSampleRate
public void setSampleRate(long sampleRate)
- Parameters:
sampleRate
- the sampleRate to set
getByteRate
public long getByteRate()
- Returns:
- the byteRate (bytes per second)
setByteRate
public void setByteRate(long byteRate)
- Parameters:
byteRate
- the byteRate to set
getAudioFormatCode
public int getAudioFormatCode()
- Returns:
- the audioFormatCode
setAudioFormatCode
public void setAudioFormatCode(int audioFormatCode)
- Parameters:
audioFormatCode
- the audioFormatCode to set
getAudioChannelCount
public int getAudioChannelCount()
- Returns:
- the audioChannelCount
setAudioChannelCount
public void setAudioChannelCount(int audioChannelCount)
- Parameters:
audioChannelCount
- the audioChannelCount to set
getBlockAlign
public int getBlockAlign()
- Returns:
- the blockAlign
setBlockAlign
public void setBlockAlign(int blockAlign)
- Parameters:
blockAlign
- the blockAlign to set
getBitsPerSample
public int getBitsPerSample()
- Returns:
- the bitsPerSample
setBitsPerSample
public void setBitsPerSample(int bitsPerSample)
- Parameters:
bitsPerSample
- the bitsPerSample to set