Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
58
Src/Plugins/Input/in_mp3/adts_mp2.h
Normal file
58
Src/Plugins/Input/in_mp3/adts_mp2.h
Normal file
|
@ -0,0 +1,58 @@
|
|||
#ifndef NULLSOFT_IN_MP3_ADTS_MP2_H
|
||||
#define NULLSOFT_IN_MP3_ADTS_MP2_H
|
||||
|
||||
#include "adts.h"
|
||||
#include "api.h"
|
||||
#include "config.h"
|
||||
#ifndef NO_MP3SURROUND
|
||||
#include "../mp3/bccDecLinklib/include/bccDecLink.h" // Binaural Cue Coding (aka mp3 surround)
|
||||
#endif
|
||||
|
||||
class ADTS_MP2 : public adts
|
||||
{
|
||||
public:
|
||||
ADTS_MP2();
|
||||
int Initialize(bool forceMono, bool reverse_stereo, bool allowSurround, int maxBits, bool allowRG, bool _useFloat, bool _useCRC);
|
||||
bool Open(ifc_mpeg_stream_reader *file);
|
||||
void Close();
|
||||
void GetOutputParameters(size_t *numBits, int *numChannels, int *sampleRate);
|
||||
void CalculateFrameSize(int *frameSize);
|
||||
void Flush(ifc_mpeg_stream_reader *file);
|
||||
size_t GetCurrentBitrate();
|
||||
size_t GetDecoderDelay();
|
||||
int Sync(ifc_mpeg_stream_reader *file, unsigned __int8 *output, size_t outputSize, size_t *outputWritten, size_t *bitrate);
|
||||
int Decode(ifc_mpeg_stream_reader *file, unsigned __int8 *output, size_t outputSize, size_t *outputWritten, size_t *bitrate, size_t *endCut);
|
||||
int GetLayer();
|
||||
void Release();
|
||||
void SetDecoderHooks(void *layer3_vis, void *layer2_eq, void *layer3_eq);
|
||||
<<<<<<< HEAD:in_mp3/adts_mp2.h
|
||||
|
||||
=======
|
||||
>>>>>>> 5058463... fix old-school vis/eq mp3 stuff:mp3/adts_mp2.h
|
||||
private:
|
||||
DecoderHooks hooks;
|
||||
CMpgaDecoder *decoder;
|
||||
int outputFrameSize;
|
||||
size_t bitsPerSample;
|
||||
double gain;
|
||||
bool allowRG;
|
||||
bool useFloat;
|
||||
|
||||
int channels;
|
||||
int sampleRate;
|
||||
unsigned int decoderDelay;
|
||||
unsigned int endcut;
|
||||
|
||||
#ifndef NO_MP3SURROUND
|
||||
float delayline[1152*2];
|
||||
int delaylineSize;
|
||||
bool lineFilled;
|
||||
SADEC_HANDLE saDecHandle;
|
||||
SA_DEC_MODE saMode;
|
||||
#endif
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue