diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 8584d45fa7..41f65947a3 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -66,9 +66,8 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
66 | #include "scroll_engine.h" | 66 | #include "scroll_engine.h" |
67 | #include "metadata.h" | 67 | #include "metadata.h" |
68 | #include "sound.h" | 68 | #include "sound.h" |
69 | #include "mpeg.h" | ||
70 | #include "audio.h" | 69 | #include "audio.h" |
71 | #include "mp3_playback.h" | 70 | #include "voice_thread.h" |
72 | #include "root_menu.h" | 71 | #include "root_menu.h" |
73 | #include "talk.h" | 72 | #include "talk.h" |
74 | #include "lang_enum.h" | 73 | #include "lang_enum.h" |
@@ -77,7 +76,6 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
77 | #endif | 76 | #endif |
78 | #include "misc.h" | 77 | #include "misc.h" |
79 | #include "pathfuncs.h" | 78 | #include "pathfuncs.h" |
80 | #if (CONFIG_CODEC == SWCODEC) | ||
81 | #include "pcm_mixer.h" | 79 | #include "pcm_mixer.h" |
82 | #include "dsp-util.h" | 80 | #include "dsp-util.h" |
83 | #include "dsp_core.h" | 81 | #include "dsp_core.h" |
@@ -88,7 +86,6 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
88 | #ifdef HAVE_RECORDING | 86 | #ifdef HAVE_RECORDING |
89 | #include "recording.h" | 87 | #include "recording.h" |
90 | #endif | 88 | #endif |
91 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
92 | #include "settings.h" | 89 | #include "settings.h" |
93 | #include "timer.h" | 90 | #include "timer.h" |
94 | #include "playlist.h" | 91 | #include "playlist.h" |
@@ -526,7 +523,6 @@ struct plugin_api { | |||
526 | unsigned int (*thread_self)(void); | 523 | unsigned int (*thread_self)(void); |
527 | void (*thread_exit)(void); | 524 | void (*thread_exit)(void); |
528 | void (*thread_wait)(unsigned int thread_id); | 525 | void (*thread_wait)(unsigned int thread_id); |
529 | #if CONFIG_CODEC == SWCODEC | ||
530 | void (*thread_thaw)(unsigned int thread_id); | 526 | void (*thread_thaw)(unsigned int thread_id); |
531 | #ifdef HAVE_PRIORITY_SCHEDULING | 527 | #ifdef HAVE_PRIORITY_SCHEDULING |
532 | int (*thread_set_priority)(unsigned int thread_id, int priority); | 528 | int (*thread_set_priority)(unsigned int thread_id, int priority); |
@@ -534,7 +530,6 @@ struct plugin_api { | |||
534 | void (*mutex_init)(struct mutex *m); | 530 | void (*mutex_init)(struct mutex *m); |
535 | void (*mutex_lock)(struct mutex *m); | 531 | void (*mutex_lock)(struct mutex *m); |
536 | void (*mutex_unlock)(struct mutex *m); | 532 | void (*mutex_unlock)(struct mutex *m); |
537 | #endif | ||
538 | #ifdef HAVE_SEMAPHORE_OBJECTS | 533 | #ifdef HAVE_SEMAPHORE_OBJECTS |
539 | void (*semaphore_init)(struct semaphore *s, int max, int start); | 534 | void (*semaphore_init)(struct semaphore *s, int max, int start); |
540 | int (*semaphore_wait)(struct semaphore *s, int timeout); | 535 | int (*semaphore_wait)(struct semaphore *s, int timeout); |
@@ -580,7 +575,6 @@ struct plugin_api { | |||
580 | void (*queue_post)(struct event_queue *q, long id, intptr_t data); | 575 | void (*queue_post)(struct event_queue *q, long id, intptr_t data); |
581 | void (*queue_wait_w_tmo)(struct event_queue *q, struct queue_event *ev, | 576 | void (*queue_wait_w_tmo)(struct event_queue *q, struct queue_event *ev, |
582 | int ticks); | 577 | int ticks); |
583 | #if CONFIG_CODEC == SWCODEC | ||
584 | void (*queue_enable_queue_send)(struct event_queue *q, | 578 | void (*queue_enable_queue_send)(struct event_queue *q, |
585 | struct queue_sender_list *send, | 579 | struct queue_sender_list *send, |
586 | unsigned int thread_id); | 580 | unsigned int thread_id); |
@@ -589,7 +583,6 @@ struct plugin_api { | |||
589 | intptr_t (*queue_send)(struct event_queue *q, long id, | 583 | intptr_t (*queue_send)(struct event_queue *q, long id, |
590 | intptr_t data); | 584 | intptr_t data); |
591 | void (*queue_reply)(struct event_queue *q, intptr_t retval); | 585 | void (*queue_reply)(struct event_queue *q, intptr_t retval); |
592 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
593 | 586 | ||
594 | #ifdef RB_PROFILE | 587 | #ifdef RB_PROFILE |
595 | void (*profile_thread)(void); | 588 | void (*profile_thread)(void); |
@@ -673,7 +666,7 @@ struct plugin_api { | |||
673 | int (*sound_enum_hw_eq_band_setting)(unsigned int band, | 666 | int (*sound_enum_hw_eq_band_setting)(unsigned int band, |
674 | unsigned int band_setting); | 667 | unsigned int band_setting); |
675 | #endif /* AUDIOHW_HAVE_EQ */ | 668 | #endif /* AUDIOHW_HAVE_EQ */ |
676 | #if ((CONFIG_CODEC == SWCODEC) && defined (HAVE_PITCHCONTROL)) | 669 | #if defined (HAVE_PITCHCONTROL) |
677 | void (*sound_set_pitch)(int32_t pitch); | 670 | void (*sound_set_pitch)(int32_t pitch); |
678 | #endif | 671 | #endif |
679 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 672 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
@@ -682,11 +675,7 @@ struct plugin_api { | |||
682 | void (*mp3_play_pause)(bool play); | 675 | void (*mp3_play_pause)(bool play); |
683 | void (*mp3_play_stop)(void); | 676 | void (*mp3_play_stop)(void); |
684 | bool (*mp3_is_playing)(void); | 677 | bool (*mp3_is_playing)(void); |
685 | #if CONFIG_CODEC != SWCODEC | ||
686 | void (*bitswap)(unsigned char *data, int length); | ||
687 | #endif | ||
688 | #endif /* PLATFORM_NATIVE */ | 678 | #endif /* PLATFORM_NATIVE */ |
689 | #if CONFIG_CODEC == SWCODEC | ||
690 | const unsigned long *audio_master_sampr_list; | 679 | const unsigned long *audio_master_sampr_list; |
691 | const unsigned long *hw_freq_sampr; | 680 | const unsigned long *hw_freq_sampr; |
692 | void (*pcm_apply_settings)(void); | 681 | void (*pcm_apply_settings)(void); |
@@ -752,7 +741,6 @@ struct plugin_api { | |||
752 | void (*pcmbuf_fade)(bool fade, bool in); | 741 | void (*pcmbuf_fade)(bool fade, bool in); |
753 | void (*system_sound_play)(enum system_sound sound); | 742 | void (*system_sound_play)(enum system_sound sound); |
754 | void (*keyclick_click)(bool rawbutton, int action); | 743 | void (*keyclick_click)(bool rawbutton, int action); |
755 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
756 | 744 | ||
757 | /* metadata */ | 745 | /* metadata */ |
758 | bool (*get_metadata)(struct mp3entry* id3, int fd, const char* trackname); | 746 | bool (*get_metadata)(struct mp3entry* id3, int fd, const char* trackname); |
@@ -817,9 +805,6 @@ struct plugin_api { | |||
817 | struct mp3entry* (*audio_current_track)(void); | 805 | struct mp3entry* (*audio_current_track)(void); |
818 | void (*audio_flush_and_reload_tracks)(void); | 806 | void (*audio_flush_and_reload_tracks)(void); |
819 | int (*audio_get_file_pos)(void); | 807 | int (*audio_get_file_pos)(void); |
820 | #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | ||
821 | unsigned long (*mpeg_get_last_header)(void); | ||
822 | #endif | ||
823 | 808 | ||
824 | /* menu */ | 809 | /* menu */ |
825 | struct menu_table *(*root_menu_get_options)(int *nb_options); | 810 | struct menu_table *(*root_menu_get_options)(int *nb_options); |
@@ -902,7 +887,6 @@ struct plugin_api { | |||
902 | #ifdef ROCKBOX_HAS_LOGF | 887 | #ifdef ROCKBOX_HAS_LOGF |
903 | void (*logf)(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2); | 888 | void (*logf)(const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2); |
904 | #endif | 889 | #endif |
905 | #if CONFIG_CODEC == SWCODEC | ||
906 | void (*codec_thread_do_callback)(void (*fn)(void), | 890 | void (*codec_thread_do_callback)(void (*fn)(void), |
907 | unsigned int *audio_thread_id); | 891 | unsigned int *audio_thread_id); |
908 | int (*codec_load_file)(const char* codec, struct codec_api *api); | 892 | int (*codec_load_file)(const char* codec, struct codec_api *api); |
@@ -915,7 +899,6 @@ struct plugin_api { | |||
915 | const unsigned long list[], | 899 | const unsigned long list[], |
916 | int count, | 900 | int count, |
917 | bool signd); | 901 | bool signd); |
918 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
919 | 902 | ||
920 | #ifdef HAVE_LCD_BITMAP | 903 | #ifdef HAVE_LCD_BITMAP |
921 | int (*read_bmp_file)(const char* filename, struct bitmap *bm, int maxsize, | 904 | int (*read_bmp_file)(const char* filename, struct bitmap *bm, int maxsize, |