- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
AudioDecoderMP3.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- /**************************************************************************************
- * *
- * *
- **************************************************************************************/
- #ifndef AUDIO_DECODER_MP3_H
- #define AUDIO_DECODER_MP3_H
- #include "MediaClasses.h"
- #include "mp3/mpglib.h"
- #include "mp3/ring.h"
- #define MP3_INPUT_BUFFER_SIZE 2048
- class MediaAudioDecoderMP3 : public MediaItemAudioDecoder {
- private:
- MediaItemDecaps *decaps;
- WAVEFORMATEX *oFormat;
- char *in_buffer;
- char *out_buffer;
- struct mpstr mp;
- int last_result;
- int real_size;
- int DecompressMp3(char *outmemory, int outmemsize, int *done);
- public:
- MediaAudioDecoderMP3();
- ~MediaAudioDecoderMP3();
- media_type_t GetType();
- char *GetName();
- MP_RESULT Connect(MediaItem *item);
- MP_RESULT ReleaseConnections();
- DWORD GetCaps();
- MP_RESULT Configure(HINSTANCE hInstance, HWND hwnd);
- WAVEFORMATEX *GetAudioFormat();
- MP_RESULT EmptyAudioBuffer();
- unsigned int Decompress(void *buffer, unsigned int size);
- };
- #endif