diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-21 23:01:12 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-21 23:01:12 +0000 |
commit | 0ad617cbf0cc85dde241345194b76b590df567a8 (patch) | |
tree | 65931c5a10788981b17f08bca1ba83151bee2855 /apps/abrepeat.h | |
parent | 658c8451ead9e7d07478c903c430af9c7799f324 (diff) |
Patch #1105616 by Ray Lambert - A-B Repeat for Archos studio/recorder, still not 100% complete, but I wanted to commit it before the 2.5 feature freeze
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7380 a1c6a512-1295-4272-9138-f99709370657
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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $$ + * + * Copyright (C) 2005 Ray Lambert + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifndef _ABREPEAT_H_ +#define _ABREPEAT_H_ + +#include "system.h" +#include <stdbool.h> + +#ifdef AB_REPEAT_ENABLE + +#define AB_MARKER_NONE 0 + +void ab_repeat_init(void); +bool ab_repeat_mode_enabled(void); // test if a/b repeat is enabled +bool ab_A_marker_set(void); +bool ab_B_marker_set(void); +unsigned int ab_get_A_marker(void); +unsigned int ab_get_B_marker(void); +bool ab_reached_B_marker(unsigned int song_position); +bool ab_before_A_marker(unsigned int song_position); +bool ab_after_A_marker(unsigned int song_position); +void ab_jump_to_A_marker(void); +void ab_reset_markers(void); +void ab_set_A_marker(unsigned int song_position); +void ab_set_B_marker(unsigned int song_position); +#ifdef HAVE_LCD_BITMAP +void ab_draw_markers(int capacity, int x, int y, int w, int h); +#endif + +#endif + +#endif /* _ABREPEAT_H_ */ |