summaryrefslogtreecommitdiff
path: root/apps/playback.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.h')
-rw-r--r--apps/playback.h29
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 **/
34int 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 */
45int 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 */
51void playback_release_aa_slot(int slot);
52#endif
53
28/* Functions */ 54/* Functions */
29const char *get_codec_filename(int cod_spec); 55const char *get_codec_filename(int cod_spec);
30void voice_wait(void); 56void voice_wait(void);
@@ -45,9 +71,6 @@ bool audio_restore_playback(int type); /* Restores the audio buffer to handle th
45void codec_thread_do_callback(void (*fn)(void), 71void 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
49int 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 */
53extern void audio_next_dir(void); 76extern void audio_next_dir(void);