1
|
1 /* MP3 Player Library 2.0 (C) 1999 A'rpi/Astral&ESP-team */
|
|
2
|
|
3 /* decoder level: */
|
|
4 extern void MP3_Init();
|
|
5 extern int MP3_Open(char *filename,int buffsize);
|
|
6 extern void MP3_SeekFrame(int num,int dir);
|
|
7 extern void MP3_SeekForward(int num);
|
|
8 extern int MP3_PrintTAG();
|
|
9 extern int MP3_DecodeFrame(unsigned char *hova,short single);
|
|
10 extern int MP3_FillBuffers();
|
|
11 extern void MP3_PrintHeader();
|
|
12 extern void MP3_Close();
|
|
13 /* public variables: */
|
|
14 extern int MP3_eof; // set if EOF reached
|
|
15 extern int MP3_pause; // lock playing
|
|
16 /* informational: */
|
|
17 extern int MP3_filesize; // filesize
|
|
18 extern int MP3_frames; // current frame no
|
|
19 extern int MP3_fpos; // current file pos
|
|
20 extern int MP3_framesize; // current framesize in bytes (including header)
|
|
21 extern int MP3_bitrate; // current bitrate (kbits)
|
|
22 extern int MP3_samplerate; // current sampling freq (Hz)
|
|
23 extern int MP3_channels;
|
|
24 extern int MP3_bps;
|
|
25
|
|
26 /* player level: */
|
|
27 extern int MP3_OpenDevice(char *devname); /* devname can be NULL for default) */
|
|
28 extern void MP3_Play();
|
|
29 extern void MP3_Stop();
|
|
30 extern void MP3_CloseDevice();
|
|
31
|