summaryrefslogtreecommitdiffstats
path: root/firmware/mpeg.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.h')
-rw-r--r--firmware/mpeg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/mpeg.h b/firmware/mpeg.h
index 97a1b36c1a..02c5e814a2 100644
--- a/firmware/mpeg.h
+++ b/firmware/mpeg.h
@@ -21,6 +21,13 @@
#include <stdbool.h>
+#define MPEG_SWAP_CHUNKSIZE 0x2000
+#define MPEG_HIGH_WATER 2 /* We leave 2 bytes empty because otherwise we
+ wouldn't be able to see the difference between
+ an empty buffer and a full one. */
+#define MPEG_LOW_WATER 0x40000
+#define MPEG_LOW_WATER_CHUNKSIZE 0x40000
+
struct mpeg_debug
{
int mp3buflen;
@@ -39,6 +46,8 @@ struct mpeg_debug
int unplayed_space;
int unswapped_space;
+
+ int lowest_watermark_level;
};
void mpeg_init(int volume, int bass, int treble, int balance,