diff options
Diffstat (limited to 'apps/playback.h')
-rw-r--r-- | apps/playback.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/apps/playback.h b/apps/playback.h index 378d5effec..add11e296b 100644 --- a/apps/playback.h +++ b/apps/playback.h | |||
@@ -25,6 +25,32 @@ | |||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | 26 | #include "config.h" |
27 | 27 | ||
28 | #ifdef HAVE_ALBUMART | ||
29 | |||
30 | #include "bmp.h" | ||
31 | /* | ||
32 | * Returns the handle id of the buffered albumart for the given slot id | ||
33 | **/ | ||
34 | int playback_current_aa_hid(int slot); | ||
35 | |||
36 | /* | ||
37 | * Hands out an albumart slot for buffering albumart using the size | ||
38 | * int the passed dim struct, it copies the data of dim in order to | ||
39 | * be safe to be reused for other code | ||
40 | * | ||
41 | * The slot may be reused if other code calls this with the same dimensions | ||
42 | * in dim, so if you change dim release and claim a new slot | ||
43 | * | ||
44 | * Save to call from other threads */ | ||
45 | int playback_claim_aa_slot(struct dim *dim); | ||
46 | |||
47 | /* | ||
48 | * Releases the albumart slot with given id | ||
49 | * | ||
50 | * Save to call from other threads */ | ||
51 | void playback_release_aa_slot(int slot); | ||
52 | #endif | ||
53 | |||
28 | /* Functions */ | 54 | /* Functions */ |
29 | const char *get_codec_filename(int cod_spec); | 55 | const char *get_codec_filename(int cod_spec); |
30 | void voice_wait(void); | 56 | void voice_wait(void); |
@@ -45,9 +71,6 @@ bool audio_restore_playback(int type); /* Restores the audio buffer to handle th | |||
45 | void codec_thread_do_callback(void (*fn)(void), | 71 | void codec_thread_do_callback(void (*fn)(void), |
46 | unsigned int *codec_thread_id); | 72 | unsigned int *codec_thread_id); |
47 | 73 | ||
48 | #ifdef HAVE_ALBUMART | ||
49 | int audio_current_aa_hid(void); | ||
50 | #endif | ||
51 | 74 | ||
52 | #if CONFIG_CODEC == SWCODEC /* This #ifdef is better here than gui/wps.c */ | 75 | #if CONFIG_CODEC == SWCODEC /* This #ifdef is better here than gui/wps.c */ |
53 | extern void audio_next_dir(void); | 76 | extern void audio_next_dir(void); |