#include extern "C" { #include "libac3/ac3.h" } class AC3_Decoder : public IAudioDecoder { WAVEFORMATEX m_wstr; ac3_frame_t* ac3_frame; ac3_config_t ac3_config; static void fillBuffer( uint_8**, uint_8** ); static int alreadyRead; static uint_8* __in_data; static const int CHUNK_SIZE; public: AC3_Decoder( WAVEFORMATEX*, void* ); int GetMinSize() { return CHUNK_SIZE; } int Convert( unsigned char* in_data, Unsigned in_size, unsigned char* out_data, Unsigned out_size, Unsigned* size_read, Unsigned* size_written ); int Close() {} };