2010-02-16 04:00:21 +01:00
|
|
|
#include "../../include/cAudioDefines.h"
|
2010-02-14 06:34:57 +01:00
|
|
|
#include "cMP3Plugin.h"
|
2010-02-20 09:44:59 +01:00
|
|
|
#ifdef CAUDIO_PLATFORM_LINUX
|
|
|
|
#include <cstring>
|
|
|
|
#endif
|
2010-02-09 06:58:27 +01:00
|
|
|
|
2010-02-14 06:34:57 +01:00
|
|
|
//Gives back the plugin class for cAudio to install and use.
|
|
|
|
extern "C" CAUDIO_API IAudioPlugin* GetPluginModule(const char* version)
|
2010-02-09 06:58:27 +01:00
|
|
|
{
|
2010-02-14 06:34:57 +01:00
|
|
|
//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)
|
|
|
|
{
|
2010-02-14 06:34:57 +01:00
|
|
|
return new cMP3DecoderPlugin();
|
2010-02-09 06:58:27 +01:00
|
|
|
}
|
2010-02-14 06:34:57 +01:00
|
|
|
return NULL;
|
2010-02-09 06:58:27 +01:00
|
|
|
}
|