summaryrefslogtreecommitdiff
path: root/apps/playback.h
diff options
context:
space:
mode:
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 @@
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19 19
20#ifndef _AUDIO_H 20#ifndef _PLAYBACK_H
21#define _AUDIO_H 21#define _PLAYBACK_H
22
23#include <stdlib.h>
24#include <ctype.h>
25#include <stdbool.h>
26
27#include "id3.h"
28#include "mp3data.h"
22 29
23/* Supported file types. */ 30/* Supported file types. */
24#define AFMT_MPA_L1 0x0001 // MPEG Audio layer 1 31#define AFMT_MPA_L1 0x0001 // MPEG Audio layer 1
@@ -45,6 +52,24 @@
45/* Not yet implemented. */ 52/* Not yet implemented. */
46#define CODEC_SET_AUDIOBUF_WATERMARK 4 53#define CODEC_SET_AUDIOBUF_WATERMARK 4
47 54
55#define MAX_TRACK 10
56struct track_info {
57 struct mp3entry id3; /* TAG metadata */
58 struct mp3info mp3data; /* MP3 metadata */
59 char *codecbuf; /* Pointer to codec buffer */
60 size_t codecsize; /* Codec length in bytes */
61 int codectype; /* Codec type (example AFMT_MPA_L3) */
62
63 off_t filerem; /* Remaining bytes of file NOT in buffer */
64 off_t filesize; /* File total length */
65 off_t filepos; /* Read position of file for next buffer fill */
66 off_t start_pos; /* Position to first bytes of file in buffer */
67 volatile int available; /* Available bytes to read from buffer */
68 bool taginfo_ready; /* Is metadata read */
69 int playlist_offset; /* File location in playlist */
70};
71
72
48/* Codec Interface */ 73/* Codec Interface */
49struct codec_api { 74struct codec_api {
50 off_t filesize; /* Total file length */ 75 off_t filesize; /* Total file length */