diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-14 14:13:13 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-14 14:13:13 +0000 |
commit | 402502fc6f11c3cb6e224e90ecfb30d5a5147a63 (patch) | |
tree | bd9a8dd5514201cff57ab87c2ed6006fcea029aa /firmware/mpeg.h | |
parent | 2f8f1c7dcf246c229b0271de78daef4d21764d10 (diff) | |
download | rockbox-402502fc6f11c3cb6e224e90ecfb30d5a5147a63.tar.gz rockbox-402502fc6f11c3cb6e224e90ecfb30d5a5147a63.zip |
Swapping is now done without the MPEG_SWAP message. Added some debugging functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2623 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.h')
-rw-r--r-- | firmware/mpeg.h | 21 |
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 | ||
24 | struct 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 | |||
24 | void mpeg_init(int volume, int bass, int treble, int balance, | 44 | void 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); |
26 | void mpeg_play(int offset); | 46 | void mpeg_play(int offset); |
@@ -46,6 +66,7 @@ int mpeg_status(void); | |||
46 | #ifdef HAVE_MAS3587F | 66 | #ifdef HAVE_MAS3587F |
47 | void mpeg_set_pitch(int percent); | 67 | void mpeg_set_pitch(int percent); |
48 | #endif | 68 | #endif |
69 | void 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 |