summaryrefslogtreecommitdiff
path: root/firmware/mpeg.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.h')
-rw-r--r--firmware/mpeg.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/firmware/mpeg.h b/firmware/mpeg.h
index 4a92a2fbe9..97a1b36c1a 100644
--- a/firmware/mpeg.h
+++ b/firmware/mpeg.h
@@ -21,6 +21,26 @@
21 21
22#include <stdbool.h> 22#include <stdbool.h>
23 23
24struct mpeg_debug
25{
26 int mp3buflen;
27 int mp3buf_write;
28 int mp3buf_swapwrite;
29 int mp3buf_read;
30
31 int last_dma_chunk_size;
32
33 bool dma_on;
34 bool playing;
35 bool play_pending;
36 bool is_playing;
37 bool filling;
38 bool dma_underrun;
39
40 int unplayed_space;
41 int unswapped_space;
42};
43
24void mpeg_init(int volume, int bass, int treble, int balance, 44void mpeg_init(int volume, int bass, int treble, int balance,
25 int loudness, int bass_boost, int avc); 45 int loudness, int bass_boost, int avc);
26void mpeg_play(int offset); 46void mpeg_play(int offset);
@@ -46,6 +66,7 @@ int mpeg_status(void);
46#ifdef HAVE_MAS3587F 66#ifdef HAVE_MAS3587F
47void mpeg_set_pitch(int percent); 67void mpeg_set_pitch(int percent);
48#endif 68#endif
69void mpeg_get_debugdata(struct mpeg_debug *dbgdata);
49 70
50#define SOUND_VOLUME 0 71#define SOUND_VOLUME 0
51#define SOUND_BASS 1 72#define SOUND_BASS 1