diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-10-29 16:52:12 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-10-29 16:52:12 +0000 |
commit | 8fb258856c537d02ed4ebd11397f055f9dc3cc5f (patch) | |
tree | effed53a5491ed25d9fb114e3fe3b9c55c354f04 | |
parent | b1a7511990c5676581810e9fce1d8ad790014048 (diff) |
Expose pcmbuf_beep() to plugins (based on FS#10608 by Christophe Gragnic)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23404 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index ae889d68fd..b79ea49054 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -39,6 +39,7 @@ #include "talk.h" #include "version.h" #include "storage.h" +#include "pcmbuf.h" #if CONFIG_CHARGING #include "power.h" @@ -671,6 +672,7 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ + pcmbuf_beep, }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 7ea1943395..de9984637f 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -133,7 +133,7 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 173 +#define PLUGIN_API_VERSION 174 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -841,6 +841,10 @@ struct plugin_api { const char *appsversion; /* new stuff at the end, sort into place next time the API gets incompatible */ + + void (*pcmbuf_beep)(unsigned int frequency, + size_t duration, + int amplitude); }; /* plugin header */ |