3 #ifndef __lib_codecs_codecmp3_h
4 #define __lib_codecs_codecmp3_h
7 #include <lib/codecs/codec.h>
9 class eAudioDecoderMP3
: public eAudioDecoder
11 enum { INPUT_BUFFER_SIZE
=8192 };
12 unsigned char input_buffer
[INPUT_BUFFER_SIZE
];
13 int avgbr
; // average bitrate
21 eIOBuffer
&input
, &output
;
23 eAudioDecoderMP3(eIOBuffer
&input
, eIOBuffer
&output
);
27 int getMinimumFramelength();
28 int decodeMore(int last
, int maxsamples
, Signal1
<void, unsigned int>*cb
=0);
29 int getAverageBitrate();