mp3.h 446 B

12345678910111213141516171819
  1. #ifndef __COMMON_MP3_H__
  2. #define __COMMON_MP3_H__
  3. #include <stdio.h>
  4. int mp3_find_sync_word(const unsigned char *buf, int size);
  5. /* decoder */
  6. int mp3dec_start(FILE *f, int fpos_start);
  7. int mp3dec_decode(FILE *f, int *file_pos, int file_len);
  8. extern unsigned short mpeg1_l3_bitrates[16];
  9. #ifdef __GP2X__
  10. int _mp3dec_start(FILE *f, int fpos_start);
  11. int _mp3dec_decode(FILE *f, int *file_pos, int file_len);
  12. #endif
  13. #endif // __COMMON_MP3_H__