diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 2886b0938f..987c07067d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -110,12 +110,12 @@ | |||
110 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 110 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
111 | 111 | ||
112 | /* increase this every time the api struct changes */ | 112 | /* increase this every time the api struct changes */ |
113 | #define PLUGIN_API_VERSION 53 | 113 | #define PLUGIN_API_VERSION 54 |
114 | 114 | ||
115 | /* update this to latest version if a change to the api struct breaks | 115 | /* update this to latest version if a change to the api struct breaks |
116 | backwards compatibility (and please take the opportunity to sort in any | 116 | backwards compatibility (and please take the opportunity to sort in any |
117 | new function which are "waiting" at the end of the function table) */ | 117 | new function which are "waiting" at the end of the function table) */ |
118 | #define PLUGIN_MIN_API_VERSION 52 | 118 | #define PLUGIN_MIN_API_VERSION 54 |
119 | 119 | ||
120 | /* plugin return codes */ | 120 | /* plugin return codes */ |
121 | enum plugin_status { | 121 | enum plugin_status { |
@@ -404,7 +404,7 @@ struct plugin_api { | |||
404 | int (*utf8seek)(const unsigned char* utf8, int offset); | 404 | int (*utf8seek)(const unsigned char* utf8, int offset); |
405 | 405 | ||
406 | /* sound */ | 406 | /* sound */ |
407 | #if CONFIG_CODEC == SWCODEC && defined(HAVE_RECORDING) | 407 | #if CONFIG_CODEC == SWCODEC |
408 | int (*sound_default)(int setting); | 408 | int (*sound_default)(int setting); |
409 | #endif | 409 | #endif |
410 | void (*sound_set)(int setting, int value); | 410 | void (*sound_set)(int setting, int value); |
@@ -424,9 +424,7 @@ struct plugin_api { | |||
424 | #if CONFIG_CODEC == SWCODEC | 424 | #if CONFIG_CODEC == SWCODEC |
425 | const unsigned long *audio_master_sampr_list; | 425 | const unsigned long *audio_master_sampr_list; |
426 | const unsigned long *hw_freq_sampr; | 426 | const unsigned long *hw_freq_sampr; |
427 | #ifndef SIMULATOR | ||
428 | void (*pcm_apply_settings)(void); | 427 | void (*pcm_apply_settings)(void); |
429 | #endif | ||
430 | void (*pcm_play_data)(pcm_more_callback_type get_more, | 428 | void (*pcm_play_data)(pcm_more_callback_type get_more, |
431 | unsigned char* start, size_t size); | 429 | unsigned char* start, size_t size); |
432 | void (*pcm_play_stop)(void); | 430 | void (*pcm_play_stop)(void); |
@@ -438,7 +436,6 @@ struct plugin_api { | |||
438 | void (*pcm_calculate_peaks)(int *left, int *right); | 436 | void (*pcm_calculate_peaks)(int *left, int *right); |
439 | #ifdef HAVE_RECORDING | 437 | #ifdef HAVE_RECORDING |
440 | const unsigned long *rec_freq_sampr; | 438 | const unsigned long *rec_freq_sampr; |
441 | #ifndef SIMULATOR | ||
442 | void (*pcm_init_recording)(void); | 439 | void (*pcm_init_recording)(void); |
443 | void (*pcm_close_recording)(void); | 440 | void (*pcm_close_recording)(void); |
444 | void (*pcm_record_data)(pcm_more_callback_type2 more_ready, | 441 | void (*pcm_record_data)(pcm_more_callback_type2 more_ready, |
@@ -449,7 +446,6 @@ struct plugin_api { | |||
449 | void (*audio_set_recording_gain)(int left, int right, int type); | 446 | void (*audio_set_recording_gain)(int left, int right, int type); |
450 | void (*audio_set_output_source)(int monitor); | 447 | void (*audio_set_output_source)(int monitor); |
451 | void (*rec_set_source)(int source, unsigned flags); | 448 | void (*rec_set_source)(int source, unsigned flags); |
452 | #endif | ||
453 | #endif /* HAVE_RECORDING */ | 449 | #endif /* HAVE_RECORDING */ |
454 | 450 | ||
455 | #endif | 451 | #endif |