org.gagravarr.flac
Class FlacInfo

java.lang.Object
  extended by org.gagravarr.flac.FlacFrame
      extended by org.gagravarr.flac.FlacMetadataBlock
          extended by org.gagravarr.flac.FlacInfo

public class FlacInfo
extends FlacMetadataBlock

The Stream Info metadata block holds useful information on the audio data of the file


Field Summary
 
Fields inherited from class org.gagravarr.flac.FlacMetadataBlock
APPLICATION, CUESHEET, PADDING, PICTURE, SEEKTABLE, STREAMINFO, VORBIS_COMMENT
 
Constructor Summary
FlacInfo()
          Creates a new, empty info
FlacInfo(byte[] data, int offset)
          Reads the Info from the specified data
 
Method Summary
 int getBitsPerSample()
           
 int getMaximumBlockSize()
          The maximum block size (in samples) used in the stream.
 int getMaximumFrameSize()
           
 int getMinimumBlockSize()
          The minimum block size (in samples) used in the stream.
 int getMinimumFrameSize()
           
 long getNumberOfSamples()
           
 int getNumChannels()
           
 int getSampleRate()
           
 byte[] getSignature()
           
 void setBitsPerSample(int bitsPerSample)
           
 void setMaximumBlockSize(int maximumBlockSize)
           
 void setMaximumFrameSize(int maximumFrameSize)
           
 void setMinimumBlockSize(int minimumBlockSize)
           
 void setMinimumFrameSize(int minimumFrameSize)
           
 void setNumberOfSamples(long numberOfSamples)
           
 void setNumChannels(int numChannels)
           
 void setSampleRate(int sampleRate)
           
 void setSignature(byte[] signature)
           
protected  void write(OutputStream out)
           
 
Methods inherited from class org.gagravarr.flac.FlacMetadataBlock
create, getData, getType, isLastMetadataBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlacInfo

public FlacInfo()
Creates a new, empty info


FlacInfo

public FlacInfo(byte[] data,
                int offset)
Reads the Info from the specified data

Method Detail

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.