Skeleton plugin code for Audacious 3.7?
Added by René Rhéaume over 8 years ago
Is there dummy/empty/template plugin code for Audacious 3.7.x somewhere? Plugins in audacious-plugins do not seem to come from the same boilerplate, and it's hard to get started.
Replies (3)
RE: Skeleton plugin code for Audacious 3.7? - Added by John Lindgren over 8 years ago
If you just want to know how to declare the header and such:
#include <libaudcore/i18n.h> #include <libaudcore/plugin.h> class DummyPlugin : public GeneralPlugin { public: static constexpr PluginInfo info = { N_("A Useless Plugin"), PACKAGE }; constexpr DummyPlugin () : GeneralPlugin (info, true) {} bool init (); void cleanup (); }; EXPORT DummyPlugin aud_plugin_instance; bool DummyPlugin::init () { return true; } void DummyPlugin::cleanup () { }
Beyond that, it will vary depending on what type of plugin you are making.
RE: Skeleton plugin code for Audacious 3.7? - Added by René Rhéaume over 8 years ago
John Lindgren wrote:
If you just want to know how to declare the header and such:
[...]
Beyond that, it will vary depending on what type of plugin you are making.
I forgot to mention I want to write an input plugin.
RE: Skeleton plugin code for Audacious 3.7? - Added by John Lindgren over 8 years ago
The sndfile plugin is pretty clean; I'd suggest using that as an example.