diff options
Diffstat (limited to 'apps/abrepeat.h')
-rw-r--r-- | apps/abrepeat.h | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/apps/abrepeat.h b/apps/abrepeat.h index f7ee65247c..4d2c4ea001 100644 --- a/apps/abrepeat.h +++ b/apps/abrepeat.h | |||
@@ -20,9 +20,38 @@ | |||
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #ifndef _ABREPEAT_H_ | 21 | #ifndef _ABREPEAT_H_ |
22 | #define _ABREPEAT_H_ | 22 | #define _ABREPEAT_H_ |
23 | |||
24 | #ifdef AB_REPEAT_ENABLE | ||
25 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | |||
25 | #ifndef AB_REPEAT_ENABLE /* Dummy functions */ | ||
26 | static inline bool ab_repeat_mode_enabled(void) | ||
27 | { | ||
28 | return false; | ||
29 | } | ||
30 | static inline bool ab_bool_dummy_marker(unsigned int song_position) | ||
31 | { | ||
32 | (void) song_position; | ||
33 | return false; | ||
34 | } | ||
35 | static inline void ab_void_dummy_marker(unsigned int song_position) | ||
36 | { | ||
37 | (void) song_position; | ||
38 | } | ||
39 | static inline void ab_dummy_voidfn(void){} | ||
40 | |||
41 | #define ab_repeat_init ab_dummy_voidfn | ||
42 | #define ab_before_A_marker ab_bool_dummy_marker | ||
43 | #define ab_after_A_marker ab_bool_dummy_marker | ||
44 | #define ab_jump_to_A_marker ab_dummy_voidfn | ||
45 | #define ab_reset_markers ab_dummy_voidfn | ||
46 | #define ab_set_A_marker ab_void_dummy_marker | ||
47 | #define ab_set_B_marker ab_void_dummy_marker | ||
48 | #define ab_get_A_marker ab_bool_dummy_marker | ||
49 | #define ab_get_B_marker ab_bool_dummy_marker | ||
50 | #define ab_end_of_track_report ab_dummy_voidfn | ||
51 | #define ab_reached_B_marker ab_bool_dummy_marker | ||
52 | #define ab_position_report ab_void_dummy_marker | ||
53 | |||
54 | #else /*def AB_REPEAT_ENABLE*/ | ||
26 | #include "audio.h" | 55 | #include "audio.h" |
27 | #include "kernel.h" /* needed for HZ */ | 56 | #include "kernel.h" /* needed for HZ */ |
28 | 57 | ||