summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-10-04 19:33:52 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-10-04 19:33:52 +0000
commitb01d8fa07174d7e3f8b4ad744275b4bc42e1ee8d (patch)
tree021c27cb47746398bafbd76142c167bc44cc1e9e
parentd1e5c74ca8bbe633dc335d788cf52a6e09ffe3b7 (diff)
downloadrockbox-b01d8fa07174d7e3f8b4ad744275b4bc42e1ee8d.tar.gz
rockbox-b01d8fa07174d7e3f8b4ad744275b4bc42e1ee8d.zip
plugins: make local functions static for metronome, rockblox1d, wavview
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30711 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/metronome.c20
-rw-r--r--apps/plugins/rockblox1d.c2
-rw-r--r--apps/plugins/wavview.c6
3 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c
index 566ff05287..4653e9719f 100644
--- a/apps/plugins/metronome.c
+++ b/apps/plugins/metronome.c
@@ -710,7 +710,7 @@ bool need_to_play = false;
710short sndbuf[sizeof(sound)*2]; 710short sndbuf[sizeof(sound)*2];
711 711
712/* Convert the mono "tock" sample to interleaved stereo */ 712/* Convert the mono "tock" sample to interleaved stereo */
713void prepare_tock(void) 713static void prepare_tock(void)
714{ 714{
715 int i; 715 int i;
716 for(i = 0;i < (int)sizeof(sound)/2;i++) { 716 for(i = 0;i < (int)sizeof(sound)/2;i++) {
@@ -719,20 +719,20 @@ void prepare_tock(void)
719 } 719 }
720} 720}
721 721
722void play_tock(void) 722static void play_tock(void)
723{ 723{
724 rb->pcm_play_data(NULL,(unsigned char *)sndbuf,sizeof(sndbuf)); 724 rb->pcm_play_data(NULL,(unsigned char *)sndbuf,sizeof(sndbuf));
725} 725}
726 726
727#endif /* CONFIG_CODEC != SWCODEC */ 727#endif /* CONFIG_CODEC != SWCODEC */
728 728
729void calc_period(void) 729static void calc_period(void)
730{ 730{
731 period = 61440/bpm-1; /* (60*1024)/bpm; */ 731 period = 61440/bpm-1; /* (60*1024)/bpm; */
732} 732}
733 733
734 734
735void metronome_draw(struct screen* display) 735static void metronome_draw(struct screen* display)
736{ 736{
737 display->clear_display(); 737 display->clear_display();
738 738
@@ -779,7 +779,7 @@ void metronome_draw(struct screen* display)
779 display->update(); 779 display->update();
780} 780}
781 781
782void draw_display(void) 782static void draw_display(void)
783{ 783{
784 int i; 784 int i;
785 FOR_NB_SCREENS(i) 785 FOR_NB_SCREENS(i)
@@ -788,7 +788,7 @@ void draw_display(void)
788 788
789/* helper function to change the volume by a certain amount, +/- 789/* helper function to change the volume by a certain amount, +/-
790 ripped from video.c */ 790 ripped from video.c */
791void change_volume(int delta) 791static void change_volume(int delta)
792{ 792{
793 int minvol = rb->sound_min(SOUND_VOLUME); 793 int minvol = rb->sound_min(SOUND_VOLUME);
794 int maxvol = rb->sound_max(SOUND_VOLUME); 794 int maxvol = rb->sound_max(SOUND_VOLUME);
@@ -804,7 +804,7 @@ void change_volume(int delta)
804} 804}
805 805
806/*function to accelerate bpm change*/ 806/*function to accelerate bpm change*/
807void change_bpm(int direction) 807static void change_bpm(int direction)
808{ 808{
809 if((bpm_step_counter < 20) 809 if((bpm_step_counter < 20)
810 || (bpm > 389) 810 || (bpm > 389)
@@ -822,7 +822,7 @@ void change_bpm(int direction)
822 bpm_step_counter++; 822 bpm_step_counter++;
823} 823}
824 824
825void timer_callback(void) 825static void timer_callback(void)
826{ 826{
827 if(minitick >= period){ 827 if(minitick >= period){
828 minitick = 0; 828 minitick = 0;
@@ -847,7 +847,7 @@ void timer_callback(void)
847 } 847 }
848} 848}
849 849
850void cleanup(void) 850static void cleanup(void)
851{ 851{
852 rb->timer_unregister(); 852 rb->timer_unregister();
853 MET_PLAY_STOP; /* stop audio ISR */ 853 MET_PLAY_STOP; /* stop audio ISR */
@@ -857,7 +857,7 @@ void cleanup(void)
857#endif 857#endif
858} 858}
859 859
860void tap(void) 860static void tap(void)
861{ 861{
862 if (tap_count == 0 || tap_time < tap_count) { 862 if (tap_count == 0 || tap_time < tap_count) {
863 tap_time = 0; 863 tap_time = 0;
diff --git a/apps/plugins/rockblox1d.c b/apps/plugins/rockblox1d.c
index 7e26d3d070..073bc30f06 100644
--- a/apps/plugins/rockblox1d.c
+++ b/apps/plugins/rockblox1d.c
@@ -190,7 +190,7 @@
190# define NEXT_Y (int)((LCD_HEIGHT * 0.8)/2-NEXT_H/2) 190# define NEXT_Y (int)((LCD_HEIGHT * 0.8)/2-NEXT_H/2)
191#endif 191#endif
192 192
193void draw_brick(int pos, int length) { 193static void draw_brick(int pos, int length) {
194 int i = pos; 194 int i = pos;
195 rb->lcd_set_drawmode(DRMODE_BG|DRMODE_INVERSEVID); 195 rb->lcd_set_drawmode(DRMODE_BG|DRMODE_INVERSEVID);
196 rb->lcd_fillrect(CENTER_X, CENTER_Y, WIDTH, WIDTH * TILES + TILES); 196 rb->lcd_fillrect(CENTER_X, CENTER_Y, WIDTH, WIDTH * TILES + TILES);
diff --git a/apps/plugins/wavview.c b/apps/plugins/wavview.c
index 25afa40901..82e75e0427 100644
--- a/apps/plugins/wavview.c
+++ b/apps/plugins/wavview.c
@@ -70,7 +70,7 @@ static uint32_t center = 0;
70static uint32_t ppp = 1; 70static uint32_t ppp = 1;
71 71
72/* helper function copied from libwavpack bits.c */ 72/* helper function copied from libwavpack bits.c */
73void little_endian_to_native (void *data, char *format) 73static void little_endian_to_native (void *data, char *format)
74{ 74{
75 unsigned char *cp = (unsigned char *) data; 75 unsigned char *cp = (unsigned char *) data;
76 76
@@ -262,7 +262,7 @@ static int readwavpeaks(const char *filename)
262 return 0; 262 return 0;
263} 263}
264 264
265int displaypeaks(void) 265static int displaypeaks(void)
266{ 266{
267 register int x = 0; 267 register int x = 0;
268 register int lymin = INT_MAX; 268 register int lymin = INT_MAX;
@@ -334,7 +334,7 @@ int displaypeaks(void)
334 return 0; 334 return 0;
335} 335}
336 336
337void show_help(void) 337static void show_help(void)
338{ 338{
339 rb->lcd_clear_display(); 339 rb->lcd_clear_display();
340 rb->lcd_puts(0, 0, "WAVVIEW USAGE:"); 340 rb->lcd_puts(0, 0, "WAVVIEW USAGE:");