summaryrefslogtreecommitdiffstats
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-09-20 10:36:25 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-09-20 14:52:30 +0000
commit5d40d9758500e1215c2eeb326ec06fa95500be67 (patch)
treee28fb0b66e207204f8c827e3201f13fe6e301c25 /apps/plugin.h
parente404026308081dd1aef79e891326040747fef9d6 (diff)
downloadrockbox-5d40d97585.tar.gz
rockbox-5d40d97585.tar.bz2
rockbox-5d40d97585.zip
voice: rename mp3_play_* functions to voice_play_*
Remove mp3_is_playing() entirely, in favor of pcm_is_playing() Remove mp3_play_pause() entirely, as it's a dummy/no-op call Remoce some archos-specific comments Change-Id: I4e9ff323490a93add00809efd19e0d4e3f198b2d
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index fc3da61c57..38d0ee0fff 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -155,12 +155,12 @@ int plugin_open(char *plugin, char *parameter);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 240
+#define PLUGIN_API_VERSION 241
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define PLUGIN_MIN_API_VERSION 239
+#define PLUGIN_MIN_API_VERSION 241
/* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */
@@ -669,9 +669,6 @@ struct plugin_api {
#if defined (HAVE_PITCHCONTROL)
void (*sound_set_pitch)(int32_t pitch);
#endif
-#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(HAVE_DISK_STORAGE)
- bool (*mp3_is_playing)(void);
-#endif /* PLATFORM_NATIVE */
const unsigned long *audio_master_sampr_list;
const unsigned long *hw_freq_sampr;
void (*pcm_apply_settings)(void);
@@ -765,6 +762,7 @@ struct plugin_api {
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
bool (*tagcache_fill_tags)(struct mp3entry *id3, const char *filename);
#endif
+ struct tagcache_stat* (*tagcache_get_stat)(void);
#endif /* HAVE_TAGCACHE */
#ifdef HAVE_ALBUMART
@@ -920,6 +918,7 @@ struct plugin_api {
void (*led)(bool on);
/*plugin*/
+ int (*plugin_open)(char *path, char *parameter);
void* (*plugin_get_buffer)(size_t *buffer_size);
void* (*plugin_get_audio_buffer)(size_t *buffer_size);
void (*plugin_release_audio_buffer)(void);
@@ -929,14 +928,8 @@ struct plugin_api {
void (*audio_hard_stop)(void);
#endif
-
/* new stuff at the end, sort into place next time
the API gets incompatible */
-
-#ifdef HAVE_TAGCACHE
- struct tagcache_stat* (*tagcache_get_stat)(void);
-#endif
- int (*plugin_open)(char *path, char *parameter);
};