diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-03-26 23:00:24 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-03-26 23:00:24 +0000 |
commit | 0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156 (patch) | |
tree | cc93b79c54ae34a78dc0876eb70c348df9737371 /apps/plugin.h | |
parent | 0ad19c7262f987691d04051648e71d6f30892d5f (diff) | |
download | rockbox-0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156.tar.gz rockbox-0c09f3ee88278c3f2fb79bfd8e3cca3eb8669156.zip |
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.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 4db3f1e33f..a2182d6f9b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -50,9 +50,11 @@ | |||
50 | #include "profile.h" | 50 | #include "profile.h" |
51 | #endif | 51 | #endif |
52 | #include "misc.h" | 52 | #include "misc.h" |
53 | #if (HWCODEC == SWCODEC) | 53 | #if (CONFIG_CODEC == SWCODEC) |
54 | #include "pcm_playback.h" | 54 | #include "pcm_playback.h" |
55 | #include "dsp.h" | 55 | #include "dsp.h" |
56 | #else | ||
57 | #include "mas.h" | ||
56 | #endif | 58 | #endif |
57 | #include "settings.h" | 59 | #include "settings.h" |
58 | #include "timer.h" | 60 | #include "timer.h" |
@@ -99,7 +101,7 @@ | |||
99 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 101 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
100 | 102 | ||
101 | /* increase this every time the api struct changes */ | 103 | /* increase this every time the api struct changes */ |
102 | #define PLUGIN_API_VERSION 15 | 104 | #define PLUGIN_API_VERSION 16 |
103 | 105 | ||
104 | /* update this to latest version if a change to the api struct breaks | 106 | /* update this to latest version if a change to the api struct breaks |
105 | backwards compatibility (and please take the opportunity to sort in any | 107 | backwards compatibility (and please take the opportunity to sort in any |
@@ -472,7 +474,11 @@ struct plugin_api { | |||
472 | the API gets incompatible */ | 474 | the API gets incompatible */ |
473 | bool (*set_sound)(const unsigned char * string, | 475 | bool (*set_sound)(const unsigned char * string, |
474 | int* variable, int setting); | 476 | int* variable, int setting); |
475 | 477 | #if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR) | |
478 | void (*i2c_begin)(void); | ||
479 | void (*i2c_end)(void); | ||
480 | int (*i2c_write)(int address, unsigned char* buf, int count ); | ||
481 | #endif | ||
476 | }; | 482 | }; |
477 | 483 | ||
478 | /* plugin header */ | 484 | /* plugin header */ |