diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-10-04 19:33:52 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-10-04 19:33:52 +0000 |
commit | b01d8fa07174d7e3f8b4ad744275b4bc42e1ee8d (patch) | |
tree | 021c27cb47746398bafbd76142c167bc44cc1e9e /apps/plugins/metronome.c | |
parent | d1e5c74ca8bbe633dc335d788cf52a6e09ffe3b7 (diff) | |
download | rockbox-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
Diffstat (limited to 'apps/plugins/metronome.c')
-rw-r--r-- | apps/plugins/metronome.c | 20 |
1 files changed, 10 insertions, 10 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; |