diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/metronome.c | 20 | ||||
-rw-r--r-- | apps/plugins/rockblox1d.c | 2 | ||||
-rw-r--r-- | apps/plugins/wavview.c | 6 |
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; | |||
710 | short sndbuf[sizeof(sound)*2]; | 710 | short sndbuf[sizeof(sound)*2]; |
711 | 711 | ||
712 | /* Convert the mono "tock" sample to interleaved stereo */ | 712 | /* Convert the mono "tock" sample to interleaved stereo */ |
713 | void prepare_tock(void) | 713 | static 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 | ||
722 | void play_tock(void) | 722 | static 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 | ||
729 | void calc_period(void) | 729 | static 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 | ||
735 | void metronome_draw(struct screen* display) | 735 | static 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 | ||
782 | void draw_display(void) | 782 | static 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 */ |
791 | void change_volume(int delta) | 791 | static 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*/ |
807 | void change_bpm(int direction) | 807 | static 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 | ||
825 | void timer_callback(void) | 825 | static 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 | ||
850 | void cleanup(void) | 850 | static 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 | ||
860 | void tap(void) | 860 | static 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 | ||
193 | void draw_brick(int pos, int length) { | 193 | static 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; | |||
70 | static uint32_t ppp = 1; | 70 | static uint32_t ppp = 1; |
71 | 71 | ||
72 | /* helper function copied from libwavpack bits.c */ | 72 | /* helper function copied from libwavpack bits.c */ |
73 | void little_endian_to_native (void *data, char *format) | 73 | static 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 | ||
265 | int displaypeaks(void) | 265 | static 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 | ||
337 | void show_help(void) | 337 | static 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:"); |