add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / mpeg.h
blob3e36c44ac5c1f455852f497e9b0733fce1e7212a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _MPEG_H_
20 #define _MPEG_H_
22 #include <stdbool.h>
23 #include "id3.h"
25 #define MPEG_SWAP_CHUNKSIZE 0x2000
26 #define MPEG_HIGH_WATER 2 /* We leave 2 bytes empty because otherwise we
27 wouldn't be able to see the difference between
28 an empty buffer and a full one. */
29 #define MPEG_LOW_WATER 0x60000
30 #define MPEG_RECORDING_LOW_WATER 0x80000
31 #define MPEG_LOW_WATER_CHUNKSIZE 0x40000
32 #define MPEG_LOW_WATER_SWAP_CHUNKSIZE 0x10000
33 #ifdef HAVE_MMC
34 #define MPEG_PLAY_PENDING_THRESHOLD 0x20000
35 #define MPEG_PLAY_PENDING_SWAPSIZE 0x20000
36 #else
37 #define MPEG_PLAY_PENDING_THRESHOLD 0x10000
38 #define MPEG_PLAY_PENDING_SWAPSIZE 0x10000
39 #endif
41 #define MPEG_MAX_PRERECORD_SECONDS 30
43 /* For ID3 info and VBR header */
44 #define MPEG_RESERVED_HEADER_SPACE (4096 + 576)
46 #if (CONFIG_CODEC == MAS3587F) || defined(SIMULATOR)
48 #if CONFIG_TUNER & S1A0903X01
49 int mpeg_get_mas_pllfreq(void);
50 #endif
52 #endif
53 unsigned long mpeg_get_last_header(void);
55 /* in order to keep the recording here, I have to expose this */
56 void rec_tick(void);
57 void playback_tick(void); /* FixMe: get rid of this, use mp3_get_playtime() */
59 void audio_set_track_changed_event(void (*handler)(struct mp3entry *id3));
60 void audio_set_track_buffer_event(void (*handler)(struct mp3entry *id3));
61 void audio_set_track_unbuffer_event(void (*handler)(struct mp3entry *id3));
62 void audio_set_cuesheet_callback(bool (*handler)(const char *filename));
64 #endif