af_lavcac3enc: fix channel reordering
[mplayer.git] / mp3lib / mp3.h
blob3877f0169bc4c736365e04490ad89647a178b787
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
6 /* decoder level: */
7 #ifdef CONFIG_FAKE_MONO
8 void MP3_Init(int fakemono);
9 #else
10 void MP3_Init(void);
11 #endif
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);
19 void MP3_Close(void);
20 /* public variables: */
21 extern int MP3_eof; // set if EOF reached
22 extern int MP3_pause; // lock playing
23 /* informational: */
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;
31 extern int MP3_bps;
33 /* player level: */
34 int MP3_OpenDevice(char *devname); /* devname can be NULL for default) */
35 void MP3_Play(void);
36 void MP3_Stop(void);
37 void MP3_CloseDevice(void);
39 #endif /* MPLAYER_MP3LIB_MP3_H */