caudio/plugins/mp3Decoder/main.cpp

17 lines
427 B
C++
Raw Normal View History

#include "../../include/cAudioDefines.h"
#include "cMP3Plugin.h"
2010-02-20 09:44:59 +01:00
#ifdef CAUDIO_PLATFORM_LINUX
#include <cstring>
#endif
//Gives back the plugin class for cAudio to install and use.
extern "C" CAUDIO_API IAudioPlugin* GetPluginModule(const char* version)
{
//Double-check the version to make sure we can be used
2010-02-10 05:59:10 +01:00
if(strcmp(CAUDIO_VERSION, version) == 0)
{
return new cMP3DecoderPlugin();
}
return NULL;
}