Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

# FLAC++/decoder.h: decoder classes
[FLAC C++ API]

## Detailed Description

This module describes the decoder layers provided by libFLAC++.

The libFLAC++ decoder classes are object wrappers around their counterparts in libFLAC. All decoding layers available in libFLAC are also provided here. The interface is very similar; make sure to read the libFLAC decoder module .

There are only two significant differences here. First, instead of passing in C function pointers for callbacks, you inherit from the decoder class and provide implementations for the callbacks in your derived class; because of this there is no need for a 'client_data' property.

Second, there are two stream decoder classes. FLAC::Decoder::Stream is used for the same cases that FLAC__stream_decoder_init_stream() / FLAC__stream_decoder_init_ogg_stream() are used, and FLAC::Decoder::File is used for the same cases that FLAC__stream_decoder_init_FILE() and FLAC__stream_decoder_init_file() / FLAC__stream_decoder_init_ogg_FILE() and FLAC__stream_decoder_init_ogg_file() are used.

## Classes
class | FLAC::Decoder::Stream
| This class wraps the FLAC__StreamDecoder. If you are decoding from a file, FLAC::Decoder::File may be more convenient. More...
class | FLAC::Decoder::File
| This class wraps the FLAC__StreamDecoder. If you are not decoding from a file, you may need to use FLAC::Decoder::Stream. More...

Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson |