1 /* MP3 Player Library 2.0 (C) 1999 A'rpi/Astral&ESP-team */
3 #ifndef MPLAYER_MP3LIB_MP3_H
4 #define MPLAYER_MP3LIB_MP3_H
7 #ifdef CONFIG_FAKE_MONO
8 void MP3_Init(int fakemono
);
12 int MP3_Open(char *filename
, int buffsize
);
13 void MP3_SeekFrame(int num
, int dir
);
14 void MP3_SeekForward(int num
);
15 int MP3_PrintTAG(void);
16 int MP3_DecodeFrame(unsigned char *hova
, short single
);
17 int MP3_FillBuffers(void);
18 void MP3_PrintHeader(void);
20 /* public variables: */
21 extern int MP3_eof
; // set if EOF reached
22 extern int MP3_pause
; // lock playing
24 extern int MP3_filesize
; // filesize
25 extern int MP3_frames
; // current frame no
26 extern int MP3_fpos
; // current file pos
27 extern int MP3_framesize
; // current framesize in bytes (including header)
28 extern int MP3_bitrate
; // current bitrate (kbits)
29 extern int MP3_samplerate
; // current sampling freq (Hz)
30 extern int MP3_channels
;
34 int MP3_OpenDevice(char *devname
); /* devname can be NULL for default) */
37 void MP3_CloseDevice(void);
39 #endif /* MPLAYER_MP3LIB_MP3_H */