org.gagravarr.flac
Class FlacInfo
java.lang.Object
org.gagravarr.flac.FlacFrame
org.gagravarr.flac.FlacMetadataBlock
org.gagravarr.flac.FlacInfo
public class FlacInfo
- extends FlacMetadataBlock
The Stream Info metadata block holds useful
information on the audio data of the file
Constructor Summary |
FlacInfo()
Creates a new, empty info |
FlacInfo(byte[] data,
int offset)
Reads the Info from the specified data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlacInfo
public FlacInfo()
- Creates a new, empty info
FlacInfo
public FlacInfo(byte[] data,
int offset)
- Reads the Info from the specified data
write
protected void write(OutputStream out)
throws IOException
- Specified by:
write
in class FlacMetadataBlock
- Throws:
IOException
getMinimumBlockSize
public int getMinimumBlockSize()
- The minimum block size (in samples) used in the stream.
setMinimumBlockSize
public void setMinimumBlockSize(int minimumBlockSize)
getMaximumBlockSize
public int getMaximumBlockSize()
- The maximum block size (in samples) used in the stream.
(Minimum blocksize == maximum blocksize) implies a fixed-blocksize stream.
setMaximumBlockSize
public void setMaximumBlockSize(int maximumBlockSize)
getMinimumFrameSize
public int getMinimumFrameSize()
setMinimumFrameSize
public void setMinimumFrameSize(int minimumFrameSize)
getMaximumFrameSize
public int getMaximumFrameSize()
setMaximumFrameSize
public void setMaximumFrameSize(int maximumFrameSize)
getSampleRate
public int getSampleRate()
setSampleRate
public void setSampleRate(int sampleRate)
getNumChannels
public int getNumChannels()
setNumChannels
public void setNumChannels(int numChannels)
getBitsPerSample
public int getBitsPerSample()
setBitsPerSample
public void setBitsPerSample(int bitsPerSample)
getNumberOfSamples
public long getNumberOfSamples()
setNumberOfSamples
public void setNumberOfSamples(long numberOfSamples)
getSignature
public byte[] getSignature()
setSignature
public void setSignature(byte[] signature)
Copyright © 2012. All Rights Reserved.