⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mp3reader.h

📁 一个播放器 使用了evc 大家可以参考下 哦
💻 H
字号:

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the MP3READER_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// MP3READER_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef MP3READER_EXPORTS
#define MP3READER_API __declspec(dllexport)
#else
#define MP3READER_API __declspec(dllimport)
#endif


// This class is exported from the MP3Reader.dll
class MP3READER_API CMP3Reader {
public:
	CMP3Reader(void);
	// TODO: add your methods here.
};


#define AVI_MAX_LEN 2000000000
#define HEADERBYTES 2048
#define PAD_EVEN(x) ( ((x)+1) & ~1 )
#define AVIIF_KEYFRAME	0x00000010L

#include "../avinterface.h"
/*
 * INDEX TYPES
 */

typedef struct
{
  long pos;
  long len;
  BYTE flags;

} video_index_entry;

typedef struct
{
   long pos;
   long len;
   long tot;

} audio_index_entry;


/*
 * Main Class
 */

typedef struct _ogginfo
{
 
	HANDLE             hIOMutex;
} ogginfo;
  


	int MP3Reader_IsAVI();
	int MP3Reader_FillHeader(int getIndex);
	int MP3Reader_AddIndexEntry(char *tag, 
			          long flags, 
			          long pos, 
			          long len);
	BOOL MP3Reader_isKeyframe(long frame);

	int               MP3Reader_VideoSeek(long frame);
	int               MP3Reader_AudioSeek(long bytes);

	int               MP3Reader_NextKeyFrame();
	int				  MP3Reader_PreviousKeyFrame();


	int               MP3Reader_SampleSize();

	int MP3Reader_Rewind();

	MP3READER_API double MP3Reader_GetProgress();

	MP3READER_API int MP3Reader_Close();
	MP3READER_API int MP3Reader_ReadAudio(char *audbuf, int bytes);


	MP3READER_API int              MP3Reader_Open(LPTSTR lpFilename, int type, int maxsize,videoinfo** info);
	MP3READER_API double            MP3Reader_FrameRate();
	MP3READER_API int               MP3Reader_NextVideoFrame(char *buffer, int drop);


	MP3READER_API int              MP3Reader_Seek(int percent,int isFrame);
	MP3READER_API int               MP3Reader_ReSeekAudio();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -