From 402502fc6f11c3cb6e224e90ecfb30d5a5147a63 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 14 Oct 2002 14:13:13 +0000 Subject: 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 --- firmware/mpeg.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'firmware/mpeg.h') 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 @@ #include +struct mpeg_debug +{ + int mp3buflen; + int mp3buf_write; + int mp3buf_swapwrite; + int mp3buf_read; + + int last_dma_chunk_size; + + bool dma_on; + bool playing; + bool play_pending; + bool is_playing; + bool filling; + bool dma_underrun; + + int unplayed_space; + int unswapped_space; +}; + void mpeg_init(int volume, int bass, int treble, int balance, int loudness, int bass_boost, int avc); void mpeg_play(int offset); @@ -46,6 +66,7 @@ int mpeg_status(void); #ifdef HAVE_MAS3587F void mpeg_set_pitch(int percent); #endif +void mpeg_get_debugdata(struct mpeg_debug *dbgdata); #define SOUND_VOLUME 0 #define SOUND_BASS 1 -- cgit v1.2.3