mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-29 21:32:41 +00:00
Added Configurable(), Configure(), Reload() and Guid() methods to IPlugin.
This commit is contained in:
parent
32f3b965e8
commit
f132f778f0
@ -42,6 +42,10 @@ namespace musik { namespace core { namespace sdk {
|
||||
virtual const char* Name() = 0;
|
||||
virtual const char* Version() = 0;
|
||||
virtual const char* Author() = 0;
|
||||
virtual const char* Guid() = 0;
|
||||
virtual bool Configurable() = 0;
|
||||
virtual void Configure() = 0;
|
||||
virtual void Reload() = 0;
|
||||
virtual int SdkVersion() = 0;
|
||||
};
|
||||
|
||||
|
@ -133,5 +133,5 @@ namespace musik {
|
||||
static const char* ExternalId = "external_id";
|
||||
}
|
||||
|
||||
static const int SdkVersion = 8;
|
||||
static const int SdkVersion = 9;
|
||||
} } }
|
||||
|
@ -47,11 +47,11 @@ class CddaDecoder : public IDecoder {
|
||||
CddaDecoder();
|
||||
~CddaDecoder();
|
||||
|
||||
bool Open(IDataStream* data);
|
||||
void Destroy();
|
||||
double SetPosition(double seconds);
|
||||
double GetDuration();
|
||||
bool GetBuffer(IBuffer *buffer);
|
||||
virtual bool Open(IDataStream* data);
|
||||
virtual void Destroy();
|
||||
virtual double SetPosition(double seconds);
|
||||
virtual double GetDuration();
|
||||
virtual bool GetBuffer(IBuffer *buffer);
|
||||
|
||||
private:
|
||||
CddaDataStream* data;
|
||||
|
@ -54,6 +54,10 @@ class CddaDecoderPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return PLUGIN_NAME; }
|
||||
virtual const char* Version() { return "0.5.0"; }
|
||||
virtual const char* Author() { return "Björn Olievier, clangen"; }
|
||||
virtual const char* Guid() { return "0862b76d-67cd-4e54-b5d1-6a2c8e5101a4"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -45,6 +45,10 @@ class DirectSoundPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "DirectSound IOutput"; };
|
||||
virtual const char* Version() { return "0.4.0"; };
|
||||
virtual const char* Author() { return "clangen"; };
|
||||
virtual const char* Guid() { return "731ad687-c52d-47b0-90b4-5483399640b5"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -57,6 +57,10 @@ class FlacPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "FLAC IDecoder"; }
|
||||
virtual const char* Version() { return "0.4.0"; }
|
||||
virtual const char* Author() { return "Daniel Önnerby, clangen"; }
|
||||
virtual const char* Guid() { return "f2acfbbc-b910-42ec-a568-6f4705d22b73"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -54,6 +54,10 @@ class HttpDataStreamPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "HTTP IDataStream"; }
|
||||
virtual const char* Version() { return "0.1.0"; }
|
||||
virtual const char* Author() { return "clangen"; }
|
||||
virtual const char* Guid() { return "b153adad-ee98-4331-ad32-4ff7f34828cd"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -57,6 +57,10 @@ class AacDecoderPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "M4A IDecoder"; };
|
||||
virtual const char* Version() { return "0.4.0"; };
|
||||
virtual const char* Author() { return "Björn Olievier, clangen"; };
|
||||
virtual const char* Guid() { return "8f62c9d6-225d-4c46-be7a-f5f61f9d0b17"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -56,6 +56,10 @@ class NomadPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "nomad IDecoder"; }
|
||||
virtual const char* Version() { return "0.2.0"; }
|
||||
virtual const char* Author() { return "clangen"; }
|
||||
virtual const char* Guid() { return "b3b86cef-8ea0-4114-828e-ed07cf41398a"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -47,9 +47,13 @@
|
||||
class NullPlugin : public musik::core::sdk::IPlugin {
|
||||
public:
|
||||
virtual void Destroy() { delete this; }
|
||||
virtual const char* Name() { return "Null IOutput"; };
|
||||
virtual const char* Version() { return "0.1.0"; };
|
||||
virtual const char* Author() { return "clangen"; };
|
||||
virtual const char* Name() { return "Null IOutput"; }
|
||||
virtual const char* Version() { return "0.1.0"; }
|
||||
virtual const char* Author() { return "clangen"; }
|
||||
virtual const char* Guid() { return "0d45a986-24f1-4253-9fc2-b432353a1eea"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -55,6 +55,10 @@ class OggDecoderPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "Ogg IDecoder"; }
|
||||
virtual const char* Version() { return "0.4.0"; }
|
||||
virtual const char* Author() { return "Björn Olievier, clangen"; }
|
||||
virtual const char* Guid() { return "0a012b43-f6bd-4252-9f92-5170848f3f92"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -55,6 +55,10 @@ class TaglibPlugin : public musik::core::sdk::IPlugin {
|
||||
virtual const char* Name() { return "Taglib 1.11 IMetadataReader"; }
|
||||
virtual const char* Version() { return "0.4.0"; }
|
||||
virtual const char* Author() { return "Daniel Önnerby, clangen"; }
|
||||
virtual const char* Guid() { return "c77ea7a4-5d57-4f17-8521-aba8eeadeda7"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -42,9 +42,13 @@
|
||||
class WasapiPlugin : public musik::core::sdk::IPlugin {
|
||||
public:
|
||||
virtual void Destroy() { delete this; }
|
||||
virtual const char* Name() { return "Wasapi IOutput"; };
|
||||
virtual const char* Version() { return "0.4.0"; };
|
||||
virtual const char* Author() { return "clangen"; };
|
||||
virtual const char* Name() { return "Wasapi IOutput"; }
|
||||
virtual const char* Version() { return "0.4.0"; }
|
||||
virtual const char* Author() { return "clangen"; }
|
||||
virtual const char* Guid() { return "871cb3c2-0002-49cd-9410-5207cb3cfd4a"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -40,9 +40,13 @@
|
||||
class WaveOutPlugin : public musik::core::sdk::IPlugin {
|
||||
public:
|
||||
virtual void Destroy() { delete this; }
|
||||
virtual const char* Name() { return "WaveOut IOutput"; };
|
||||
virtual const char* Version() { return "0.6.0"; };
|
||||
virtual const char* Author() { return "Bj\xC3\xB6rn Olievier, clangen"; };
|
||||
virtual const char* Name() { return "WaveOut IOutput"; }
|
||||
virtual const char* Version() { return "0.6.0"; }
|
||||
virtual const char* Author() { return "Bj\xC3\xB6rn Olievier, clangen"; }
|
||||
virtual const char* Guid() { return "bec5bf30-0208-4db0-af0a-2722d9de8421"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -59,6 +59,10 @@ static class Plugin : public IPlugin {
|
||||
virtual const char* Name() { return "WebSockets IPlaybackRemote"; }
|
||||
virtual const char* Version() { return "0.6.0"; }
|
||||
virtual const char* Author() { return "clangen"; }
|
||||
virtual const char* Guid() { return "9fc897a3-dfd5-4524-a0fc-b02f46aea4a9"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
virtual int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
} plugin;
|
||||
|
||||
|
@ -204,9 +204,13 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID lpReserved) {
|
||||
class VisualizerPlugin : public musik::core::sdk::IPlugin {
|
||||
public:
|
||||
virtual void Destroy() { delete this; }
|
||||
virtual const char* Name() { return "GdiVis"; };
|
||||
virtual const char* Version() { return "0.2.0"; };
|
||||
virtual const char* Author() { return "clangen"; };
|
||||
virtual const char* Name() { return "GdiVis"; }
|
||||
virtual const char* Version() { return "0.2.0"; }
|
||||
virtual const char* Author() { return "clangen"; }
|
||||
virtual const char* Guid() { return "4b0f37f7-96fe-438c-acf2-bbdd53ce1ddf"; }
|
||||
virtual bool Configurable() { return false; }
|
||||
virtual void Configure() { }
|
||||
virtual void Reload() { }
|
||||
int SdkVersion() { return musik::core::sdk::SdkVersion; }
|
||||
};
|
||||
|
||||
|
@ -172,6 +172,20 @@ class MMShellHook:
|
||||
return "clangen";
|
||||
}
|
||||
|
||||
virtual const char* Guid() {
|
||||
return "e2678930-ecd4-43b8-85e0-e41d634445b2";
|
||||
}
|
||||
|
||||
virtual bool Configurable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void Configure() {
|
||||
}
|
||||
|
||||
virtual void Reload() {
|
||||
}
|
||||
|
||||
virtual int SdkVersion() {
|
||||
return musik::core::sdk::SdkVersion;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user