diff options
Diffstat (limited to 'apps/abrepeat.h')
-rw-r--r-- | apps/abrepeat.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/apps/abrepeat.h b/apps/abrepeat.h new file mode 100644 index 0000000000..113a1f5ee6 --- /dev/null +++ b/apps/abrepeat.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $$ | ||
9 | * | ||
10 | * Copyright (C) 2005 Ray Lambert | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef _ABREPEAT_H_ | ||
20 | #define _ABREPEAT_H_ | ||
21 | |||
22 | #include "system.h" | ||
23 | #include <stdbool.h> | ||
24 | |||
25 | #ifdef AB_REPEAT_ENABLE | ||
26 | |||
27 | #define AB_MARKER_NONE 0 | ||
28 | |||
29 | void ab_repeat_init(void); | ||
30 | bool ab_repeat_mode_enabled(void); // test if a/b repeat is enabled | ||
31 | bool ab_A_marker_set(void); | ||
32 | bool ab_B_marker_set(void); | ||
33 | unsigned int ab_get_A_marker(void); | ||
34 | unsigned int ab_get_B_marker(void); | ||
35 | bool ab_reached_B_marker(unsigned int song_position); | ||
36 | bool ab_before_A_marker(unsigned int song_position); | ||
37 | bool ab_after_A_marker(unsigned int song_position); | ||
38 | void ab_jump_to_A_marker(void); | ||
39 | void ab_reset_markers(void); | ||
40 | void ab_set_A_marker(unsigned int song_position); | ||
41 | void ab_set_B_marker(unsigned int song_position); | ||
42 | #ifdef HAVE_LCD_BITMAP | ||
43 | void ab_draw_markers(int capacity, int x, int y, int w, int h); | ||
44 | #endif | ||
45 | |||
46 | #endif | ||
47 | |||
48 | #endif /* _ABREPEAT_H_ */ | ||