summaryrefslogtreecommitdiff
path: root/apps/plugins/metronome.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/metronome.c')
-rw-r--r--apps/plugins/metronome.c20
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;
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;