See: Description
Interface | Description |
---|---|
FLACOutputStream |
This interface defines a location to write the output of the FLAC
encoder to.
|
Class | Description |
---|---|
ArrayRecycler |
The purpose of this class is to provide a source for reusable int arrays.
|
AudioStreamEncoder |
AudioStreamEncoder provides commonly needed methods for encoding with a
FLACEncoder from an AudioInputStream.
|
BlockEncodeRequest |
BlockEncodeRequests are used to store a full block and necessary information
to encode such block.
|
BlockThreadManager |
BlockThreadManager is used by FLACEncoder(when encoding with threads), to
dispatch BlockEncodeRequests to ThreadFrames which do the actual encode.
|
ChannelData | |
CRC16 |
Class to calculate a CRC16 checksum.
|
CRC8 |
Class to calculate a CRC8 checksum.
|
EncodedElement |
EncodedElement class provides is used to store data in the proper bitstream
format for FLAC audio.
|
EncodedElement_32 | Deprecated |
EncodingConfiguration |
This class defines the configuration options that are allowed to change
within a FLAC stream.
|
FLAC_ConsoleFileEncoder |
FLAC_ConsoleFileEncoder is the command line interface to this FLAC encoder.
|
FLAC_FileEncoder |
FLAC_FileEncoder is a class to encode an input wav File to an output Flac
file.
|
FLAC_MD5 | |
FLACEncoder |
This class defines a FLAC Encoder with a simple interface for enabling FLAC
encoding support in an application.
|
FLACFileOutputStream |
This class provides basic file output for writing from a FLACEncoder.
|
FLACFileWriter |
Class provides FLAC encoding using javax sound SPI.
|
FLACStreamController | |
FLACStreamIdentifier |
Provides the stream identifier used at beginning of flac streams.
|
FLACStreamOutputStream |
This class provides basic OutputStream support for writing from a FLACEncoder.
|
Frame |
Handles taking a set of audio samples, and splitting it into the proper
subframes, and returning the resulting encoded data.
|
FrameHeader |
This class is used to generate a Frame Header for a FLAC Frame.
|
FrameThread |
The FrameThread class provides threading support for a Frame object, allowing
multi-threaded encodings of FLAC frames.
|
LPC |
This class is used to calculate LPC Coefficients for a FLAC stream.
|
MetadataBlockHeader |
The MetadataBlockHeader class is used to creat FLAC compliant Metadata Block
Headers.
|
MetadataBlockStreamInfo |
MetadataBlockStreamInfo is used to declare the initial stream parameters,
such as Sample Rate, bits per sample, and number of channels, as well as
information on the encoded stream such as total number of samples, minimum
and maximum block and frame sizes, and md5sum of raw audio samples.
|
RiceEncoder |
The RiceEncoder class is used to create FLAC-compliant rice-encoded
residuals.
|
StreamConfiguration |
This class defines the configuration options that may not change throughout
a FLAC stream.
|
Subframe |
Description: This abstract class declares the methods needed to retrieve
encoded data in a standard format(across the different implemented Subframe
types), as well as the generic methods needed to write the subframe header.
|
Subframe_Constant |
Implements the Subframe abstract class, providing encoding support for the
FLAC Constant Subframe.
|
Subframe_Fixed |
Implements the Subframe abstract class, providing encoding support for the
FLAC Fixed-predictor Subframe.
|
Subframe_LPC |
Implements the Subframe abstract class, providing encoding support for the
FLAC LPC Subframe.
|
Subframe_Verbatim |
Implements the Subframe abstract class, providing encoding support for the
FLAC Verbatim Subframe.
|
UTF8Modified |
This is a utility class that provides methods to both encode to and decode
from the extended version of UTF8 used by the FLAC format.
|
Enum | Description |
---|---|
ChannelData.ChannelName | |
EncodingConfiguration.ChannelConfig |
Defines the options for channel configuration to use.
|
EncodingConfiguration.SubframeType |
Defines the various subframe types that may be used.
|
FLAC_FileEncoder.Status |
Status enum for encode result
|
MetadataBlockHeader.MetadataBlockType |
Enum containing the different Metadata block types.
|
If you're simply needing to convert a file(as opposed to a stream), you may
want to use the FLAC_FileEncoder class.
For applications using the javax.sound API, this library includes basic support.
FLACFileWriter provides the implementation of
javax.sound.sampled.spi.AudioFileWriter. After installing a release jar in the
appropriate location, the FLAC encoder should be available for use by any application
which makes use of the sound api for transcoding purposes. Use this if you need basic
encoding support(with default configuration), and have a
javax.sound.sampled.AudioInputStream as your source.
The remaining example is for those who need more control over the encoding
process, including supplying a non-default EncodingConfiguration object, or
for whom the prior methods are not otherwise suitable. For direct, low-level
access, an application should primarily use the classes FLACEncoder,
EncodingConfiguration, StreamConfiguration, and FLACOutputStream.
1) Set StreamConfiguration to appropriate values. After a stream is opened, this must not be altered until the stream is closed.
2) Set FLACOutputStream, object to write results to.
3) Open FLAC Stream
4) Set EncodingConfiguration(if defaults are insufficient).
5) Add samples to encoder
6) Encode Samples
7) Close stream
(note: steps 4,5, and 6 may be done repeatedly, in any order. However, see related method documentation for info on concurrent use)