summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-03-26 23:00:24 +0000
committerJens Arnold <amiconn@rockbox.org>2006-03-26 23:00:24 +0000
commit0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156 (patch)
treecc93b79c54ae34a78dc0876eb70c348df9737371 /apps/plugin.h
parent0ad19c7262f987691d04051648e71d6f30892d5f (diff)
downloadrockbox-0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156.zip
rockbox-0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156.tar.gz
rockbox-0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156.tar.bz2
rockbox-0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156.tar.xz
WAV playback as a plugin, for archos recorders and Ondios. Plays 16-bit WAV files with all common sample frequencies, both mono and stereo. Meant as a preview for later PCM playback integration, and for doing experiments with the MAS PCM codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9273 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 4db3f1e..a2182d6 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -50,9 +50,11 @@
#include "profile.h"
#endif
#include "misc.h"
-#if (HWCODEC == SWCODEC)
+#if (CONFIG_CODEC == SWCODEC)
#include "pcm_playback.h"
#include "dsp.h"
+#else
+#include "mas.h"
#endif
#include "settings.h"
#include "timer.h"
@@ -99,7 +101,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 15
+#define PLUGIN_API_VERSION 16
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -472,7 +474,11 @@ struct plugin_api {
the API gets incompatible */
bool (*set_sound)(const unsigned char * string,
int* variable, int setting);
-
+#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR)
+ void (*i2c_begin)(void);
+ void (*i2c_end)(void);
+ int (*i2c_write)(int address, unsigned char* buf, int count );
+#endif
};
/* plugin header */