MP3 Player. You can change fwd/rev speed and skip. see: http://mbed.org/users/okini3939/notebook/lpc4088_madplayer/
Dependencies: I2SSlave SDFileSystem TLV320 mbed
Diff: player.h
- Revision:
- 0:8ba6230eefbd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/player.h Tue Feb 18 00:22:50 2014 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" +#include "decoder.h" +#include "TLV320.h" + +#define FWDBUF 10 // sec + +//#define DEBUG + +#ifdef DEBUG +#define DBG(...) printf("" __VA_ARGS__) +#else +#define DBG(...) +#endif + + +struct dacout_s { + unsigned short l; + unsigned short r; +}; + +void poll (); +int init_audio (); +int command (char *cmd); +int play (char *filename); + +enum mad_flow input(void *data,struct mad_stream *stream); +enum mad_flow output(void *data,struct mad_header const *header,struct mad_pcm *pcm); +enum mad_flow error_fn(void *data,struct mad_stream *stream,struct mad_frame *frame);