diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index f15c626667..113296c19a 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -65,6 +65,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
65 | #include "misc.h" | 65 | #include "misc.h" |
66 | #include "filefuncs.h" | 66 | #include "filefuncs.h" |
67 | #if (CONFIG_CODEC == SWCODEC) | 67 | #if (CONFIG_CODEC == SWCODEC) |
68 | #include "pcm_mixer.h" | ||
68 | #include "dsp.h" | 69 | #include "dsp.h" |
69 | #include "codecs.h" | 70 | #include "codecs.h" |
70 | #include "playback.h" | 71 | #include "playback.h" |
@@ -145,7 +146,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
145 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 146 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
146 | 147 | ||
147 | /* increase this every time the api struct changes */ | 148 | /* increase this every time the api struct changes */ |
148 | #define PLUGIN_API_VERSION 205 | 149 | #define PLUGIN_API_VERSION 206 |
149 | 150 | ||
150 | /* update this to latest version if a change to the api struct breaks | 151 | /* update this to latest version if a change to the api struct breaks |
151 | backwards compatibility (and please take the opportunity to sort in any | 152 | backwards compatibility (and please take the opportunity to sort in any |
@@ -635,9 +636,8 @@ struct plugin_api { | |||
635 | const void* (*pcm_get_peak_buffer)(int *count); | 636 | const void* (*pcm_get_peak_buffer)(int *count); |
636 | void (*pcm_play_lock)(void); | 637 | void (*pcm_play_lock)(void); |
637 | void (*pcm_play_unlock)(void); | 638 | void (*pcm_play_unlock)(void); |
638 | void (*pcmbuf_beep)(unsigned int frequency, | 639 | void (*beep_play)(unsigned int frequency, unsigned int duration, |
639 | size_t duration, | 640 | unsigned int amplitude); |
640 | int amplitude); | ||
641 | #ifdef HAVE_RECORDING | 641 | #ifdef HAVE_RECORDING |
642 | const unsigned long *rec_freq_sampr; | 642 | const unsigned long *rec_freq_sampr; |
643 | void (*pcm_init_recording)(void); | 643 | void (*pcm_init_recording)(void); |
@@ -908,6 +908,8 @@ struct plugin_api { | |||
908 | 908 | ||
909 | /* new stuff at the end, sort into place next time | 909 | /* new stuff at the end, sort into place next time |
910 | the API gets incompatible */ | 910 | the API gets incompatible */ |
911 | enum channel_status (*mixer_channel_status)(enum pcm_mixer_channel channel); | ||
912 | void * (*mixer_channel_get_buffer)(enum pcm_mixer_channel channel, int *count); | ||
911 | }; | 913 | }; |
912 | 914 | ||
913 | /* plugin header */ | 915 | /* plugin header */ |