summaryrefslogtreecommitdiff
path: root/apps/playback.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-06-14 22:27:57 +0000
committerDave Chapman <dave@dchapman.com>2005-06-14 22:27:57 +0000
commit3ad485b15a51e92a23540429b64e89656555bba6 (patch)
treea84ff392ab5e5cc6a6e170e7607996d7fd4d13d3 /apps/playback.h
parent88a89e0cdbfc4d745c48ff607b0774192d66218c (diff)
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
Diffstat (limited to 'apps/playback.h')
-rw-r--r--apps/playback.h29
1 files changed, 27 insertions, 2 deletions
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 <stdlib.h>
+#include <ctype.h>
+#include <stdbool.h>
+
+#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 */