wavreaderdll.cpp

来自「wav文件读取插件」· C++ 代码 · 共 47 行

CPP
47 行
字号
// WavReaderDll.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"

#define READER_COUNT  1
CKPluginInfo g_piInfo[READER_COUNT];

#define READER_VERSION	0x00000001
#define WAVREADER_GUID		CKGUID(0x61abc44f,0xe1233343)


CKPluginInfo* WAVReader::GetReaderInfo()
{
	return &g_piInfo[0];
}

#ifdef CK_LIB
	CKDataReader *CKGet_WavReader_Reader(int pos)
#else
	CKDataReader* CKGetReader(int pos)
#endif
{
	return new WAVReader;
}



#ifdef CK_LIB
	CKPluginInfo* CKGet_WavReader_PluginInfo(int index)
#else
	CKPluginInfo* CKGetPluginInfo(int index)
#endif
{
		g_piInfo[0].m_GUID			= WAVREADER_GUID;
		g_piInfo[0].m_Version		= READER_VERSION;
		g_piInfo[0].m_Description	= "Wav Sound Files";
		g_piInfo[0].m_Summary		= "Wav reader";
		g_piInfo[0].m_Extension		= "Wav";			
		g_piInfo[0].m_Author		= "Virtools";			
		g_piInfo[0].m_InitInstanceFct=NULL;	// 
		g_piInfo[0].m_Type			=CKPLUGIN_SOUND_READER;	// Plugin Type

		return &g_piInfo[0];
}

⌨️ 快捷键说明

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