From 3ad485b15a51e92a23540429b64e89656555bba6 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 14 Jun 2005 22:27:57 +0000 Subject: Move metadata parsing code from playback.c into metadata.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6714 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.h | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'apps/playback.h') diff --git a/apps/playback.h b/apps/playback.h index 4cdece75c9..1df283e6b8 100644 --- a/apps/playback.h +++ b/apps/playback.h @@ -17,8 +17,15 @@ * ****************************************************************************/ -#ifndef _AUDIO_H -#define _AUDIO_H +#ifndef _PLAYBACK_H +#define _PLAYBACK_H + +#include +#include +#include + +#include "id3.h" +#include "mp3data.h" /* Supported file types. */ #define AFMT_MPA_L1 0x0001 // MPEG Audio layer 1 @@ -45,6 +52,24 @@ /* Not yet implemented. */ #define CODEC_SET_AUDIOBUF_WATERMARK 4 +#define MAX_TRACK 10 +struct track_info { + struct mp3entry id3; /* TAG metadata */ + struct mp3info mp3data; /* MP3 metadata */ + char *codecbuf; /* Pointer to codec buffer */ + size_t codecsize; /* Codec length in bytes */ + int codectype; /* Codec type (example AFMT_MPA_L3) */ + + off_t filerem; /* Remaining bytes of file NOT in buffer */ + off_t filesize; /* File total length */ + off_t filepos; /* Read position of file for next buffer fill */ + off_t start_pos; /* Position to first bytes of file in buffer */ + volatile int available; /* Available bytes to read from buffer */ + bool taginfo_ready; /* Is metadata read */ + int playlist_offset; /* File location in playlist */ +}; + + /* Codec Interface */ struct codec_api { off_t filesize; /* Total file length */ -- cgit v1.2.3