summaryrefslogtreecommitdiff
path: root/apps/mpeg.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mpeg.h')
-rw-r--r--apps/mpeg.h42
1 files changed, 2 insertions, 40 deletions
diff --git a/apps/mpeg.h b/apps/mpeg.h
index 3aaa990881..106933dba3 100644
--- a/apps/mpeg.h
+++ b/apps/mpeg.h
@@ -21,46 +21,8 @@
21#ifndef _MPEG_H_ 21#ifndef _MPEG_H_
22#define _MPEG_H_ 22#define _MPEG_H_
23 23
24#include <stdbool.h> 24#if CONFIG_CODEC != SWCODEC
25#include "metadata.h"
26
27#define MPEG_SWAP_CHUNKSIZE 0x2000
28#define MPEG_HIGH_WATER 2 /* We leave 2 bytes empty because otherwise we
29 wouldn't be able to see the difference between
30 an empty buffer and a full one. */
31#define MPEG_LOW_WATER 0x60000
32#define MPEG_RECORDING_LOW_WATER 0x80000
33#define MPEG_LOW_WATER_CHUNKSIZE 0x40000
34#define MPEG_LOW_WATER_SWAP_CHUNKSIZE 0x10000
35#if (CONFIG_STORAGE & STORAGE_MMC)
36#define MPEG_PLAY_PENDING_THRESHOLD 0x20000
37#define MPEG_PLAY_PENDING_SWAPSIZE 0x20000
38#else
39#define MPEG_PLAY_PENDING_THRESHOLD 0x10000
40#define MPEG_PLAY_PENDING_SWAPSIZE 0x10000
41#endif
42
43#define MPEG_MAX_PRERECORD_SECONDS 30
44
45/* For ID3 info and VBR header */
46#define MPEG_RESERVED_HEADER_SPACE (4096 + 576)
47
48#if (CONFIG_CODEC == MAS3587F) || defined(SIMULATOR)
49
50#if CONFIG_TUNER & S1A0903X01
51int mpeg_get_mas_pllfreq(void);
52#endif
53
54#endif
55unsigned long mpeg_get_last_header(void); 25unsigned long mpeg_get_last_header(void);
56 26
57/* in order to keep the recording here, I have to expose this */ 27#endif
58void rec_tick(void);
59void playback_tick(void); /* FixMe: get rid of this, use mp3_get_playtime() */
60
61void audio_set_track_changed_event(void (*handler)(struct mp3entry *id3));
62void audio_set_track_buffer_event(void (*handler)(struct mp3entry *id3));
63void audio_set_track_unbuffer_event(void (*handler)(struct mp3entry *id3));
64void audio_set_cuesheet_callback(bool (*handler)(const char *filename));
65
66#endif 28#endif