Main Page Modules Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

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

This module describes the three encoder layers provided by libFLAC++. More...

## Modules
FLAC++/encoder.h: stream encoder class
| This class wraps the FLAC__StreamEncoder.

FLAC++/encoder.h: seekable stream encoder class
| This class wraps the FLAC__SeekableStreamEncoder.

FLAC++/encoder.h: file encoder class
| This class wraps the FLAC__FileEncoder.

## Detailed Description

This module describes the three encoder layers provided by libFLAC++.

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

The only real difference here is that instead of passing in C function pointers for callbacks, you inherit from the encoder class and provide implementations for the callbacks in the derived class; because of this there is no need for a 'client_data' property.