X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fmp3.h;h=eb66db88b7722effcd402906aea0923c344a03ae;hb=fda2f31020bf0d6cf7b5dd70ec01cf390b7e1483;hp=31b8d6f02b799258dc787ac1f0fdfd7650e04754;hpb=7c34867ab6109c47ad099e903a57af6d2699074f;p=picodrive.git diff --git a/platform/common/mp3.h b/platform/common/mp3.h index 31b8d6f..eb66db8 100644 --- a/platform/common/mp3.h +++ b/platform/common/mp3.h @@ -1,6 +1,19 @@ +#ifndef __COMMON_MP3_H__ +#define __COMMON_MP3_H__ + +#include + +int mp3_find_sync_word(const unsigned char *buf, int size); + +/* decoder */ +int mp3dec_start(FILE *f, int fpos_start); +int mp3dec_decode(FILE *f, int *file_pos, int file_len); + +extern unsigned short mpeg1_l3_bitrates[16]; #ifdef __GP2X__ void mp3_update_local(int *buffer, int length, int stereo); -void mp3_start_play_local(FILE *f, int pos); +void mp3_start_play_local(void *f, int pos); #endif +#endif // __COMMON_MP3_H__