lots of old and new edits
[kugel-rb.git] / apps / abrepeat.h
blob113a1f5ee63d0c825f28dbbc53cf2cb4857b0050
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $$
10 * Copyright (C) 2005 Ray Lambert
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _ABREPEAT_H_
20 #define _ABREPEAT_H_
22 #include "system.h"
23 #include <stdbool.h>
25 #ifdef AB_REPEAT_ENABLE
27 #define AB_MARKER_NONE 0
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
46 #endif
48 #endif /* _ABREPEAT_H_ */