summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-07-01 00:26:01 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-07-01 00:26:01 +0000
commitcf73340f1e85d3b39dc452d57e28d2a9a9081051 (patch)
tree27a89d40fae023d994c7a59d3950f7af32dc00aa /apps/plugin.h
parent10b8e327d8c0d37b8a9f1997e33e4bf1a97bb39b (diff)
downloadrockbox-cf73340f1e85d3b39dc452d57e28d2a9a9081051.tar.gz
rockbox-cf73340f1e85d3b39dc452d57e28d2a9a9081051.zip
Enable game sounds in PacBox. Sound is OFF by default but can be enabled from the menu. Enable a function for SWCODEC in the middle of the plugin API, so plugins must be made incompatible (full update).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27202 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index b0f4e051c5..edad8c4e9b 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -144,12 +144,12 @@ void* plugin_get_buffer(size_t *buffer_size);
144#define PLUGIN_MAGIC 0x526F634B /* RocK */ 144#define PLUGIN_MAGIC 0x526F634B /* RocK */
145 145
146/* increase this every time the api struct changes */ 146/* increase this every time the api struct changes */
147#define PLUGIN_API_VERSION 187 147#define PLUGIN_API_VERSION 188
148 148
149/* update this to latest version if a change to the api struct breaks 149/* update this to latest version if a change to the api struct breaks
150 backwards compatibility (and please take the opportunity to sort in any 150 backwards compatibility (and please take the opportunity to sort in any
151 new function which are "waiting" at the end of the function table) */ 151 new function which are "waiting" at the end of the function table) */
152#define PLUGIN_MIN_API_VERSION 187 152#define PLUGIN_MIN_API_VERSION 188
153 153
154/* plugin return codes */ 154/* plugin return codes */
155enum plugin_status { 155enum plugin_status {
@@ -782,12 +782,10 @@ struct plugin_api {
782 const char *(*get_codec_filename)(int cod_spec); 782 const char *(*get_codec_filename)(int cod_spec);
783 void ** (*find_array_ptr)(void **arr, void *ptr); 783 void ** (*find_array_ptr)(void **arr, void *ptr);
784 int (*remove_array_ptr)(void **arr, void *ptr); 784 int (*remove_array_ptr)(void **arr, void *ptr);
785#if defined(HAVE_RECORDING) && (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN)) 785 int (*round_value_to_list32)(unsigned long value,
786int (*round_value_to_list32)(unsigned long value, 786 const unsigned long list[],
787 const unsigned long list[], 787 int count,
788 int count, 788 bool signd);
789 bool signd);
790#endif
791#endif /* CONFIG_CODEC == SWCODEC */ 789#endif /* CONFIG_CODEC == SWCODEC */
792 bool (*get_metadata)(struct mp3entry* id3, int fd, const char* trackname); 790 bool (*get_metadata)(struct mp3entry* id3, int fd, const char* trackname);
793 bool (*mp3info)(struct mp3entry *entry, const char *filename); 791 bool (*mp3info)(struct mp3entry *entry, const char *filename);