Battery blinks if >BATTERY_LEVEL_DANGEROUS
[kugel-rb.git] / firmware / id3.h
blob203e997073fd1bced12ff373178c36f81c608ff9
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Daniel Stenberg
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 ID3_H
20 #define ID3_H
22 #include "file.h"
24 struct mp3entry {
25 char path[MAX_PATH];
26 char *title;
27 char *artist;
28 char *album;
29 int tracknum;
30 int version;
31 int layer;
32 bool vbr;
33 unsigned int bitrate;
34 unsigned int frequency;
35 unsigned int id3v2len;
36 unsigned int id3v1len;
37 unsigned int filesize; /* in bytes */
38 unsigned int length; /* song length */
39 unsigned int elapsed; /* ms played */
41 /* these following two fields are used for local buffering */
42 char id3v2buf[300];
43 char id3v1buf[3][32];
46 bool mp3info(struct mp3entry *entry, char *filename);
48 #endif