diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-07-02 11:55:38 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-07-02 11:55:38 +0000 |
commit | 22b6def065ab7c2ca030f405577e34104ad20011 (patch) | |
tree | 6be548bf591d2365077b74679048737fe51792a2 /apps/plugin.h | |
parent | 8c954e28b75b47543f69abe2c169d83ad38c26ae (diff) | |
download | rockbox-22b6def065ab7c2ca030f405577e34104ad20011.tar.gz rockbox-22b6def065ab7c2ca030f405577e34104ad20011.zip |
Use playback channel directly for peakmeters and plugins using peak calculation. Also, for now, don't allow mixer playback to overlap recording, even if full duplex works.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30119 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index aa39829daf..77c8e831d4 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -146,7 +146,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
146 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 146 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
147 | 147 | ||
148 | /* increase this every time the api struct changes */ | 148 | /* increase this every time the api struct changes */ |
149 | #define PLUGIN_API_VERSION 206 | 149 | #define PLUGIN_API_VERSION 207 |
150 | 150 | ||
151 | /* 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 |
152 | backwards compatibility (and please take the opportunity to sort in any | 152 | backwards compatibility (and please take the opportunity to sort in any |
@@ -911,6 +911,8 @@ struct plugin_api { | |||
911 | #if CONFIG_CODEC == SWCODEC | 911 | #if CONFIG_CODEC == SWCODEC |
912 | enum channel_status (*mixer_channel_status)(enum pcm_mixer_channel channel); | 912 | enum channel_status (*mixer_channel_status)(enum pcm_mixer_channel channel); |
913 | void * (*mixer_channel_get_buffer)(enum pcm_mixer_channel channel, int *count); | 913 | void * (*mixer_channel_get_buffer)(enum pcm_mixer_channel channel, int *count); |
914 | void (*mixer_channel_calculate_peaks)(enum pcm_mixer_channel channel, | ||
915 | int *left, int *right); | ||
914 | #endif | 916 | #endif |
915 | }; | 917 | }; |
916 | 918 | ||