summaryrefslogtreecommitdiff
path: root/firmware/export/mpeg.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2008-10-14 11:12:20 +0000
committerBjörn Stenberg <bjorn@haxx.se>2008-10-14 11:12:20 +0000
commit9558c4956d3d603c4d132af88633767810f3ba62 (patch)
treeb0d739f6246a7175de106562a2c755724f977cbe /firmware/export/mpeg.h
parent91b9c6139b3447d7c0f4f2924ef73a9dc323703b (diff)
downloadrockbox-9558c4956d3d603c4d132af88633767810f3ba62.tar.gz
rockbox-9558c4956d3d603c4d132af88633767810f3ba62.zip
Moved pcm_record from firmware to apps. Cleaned up some. Now all code using struct mp3entry is in apps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18807 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/mpeg.h')
-rw-r--r--firmware/export/mpeg.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/firmware/export/mpeg.h b/firmware/export/mpeg.h
deleted file mode 100644
index ce2cff0069..0000000000
--- a/firmware/export/mpeg.h
+++ /dev/null
@@ -1,66 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef _MPEG_H_
22#define _MPEG_H_
23
24#include <stdbool.h>
25#include "id3.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#ifdef HAVE_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);
56
57/* in order to keep the recording here, I have to expose this */
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