MP3 Player. You can change fwd/rev speed and skip. see: http://mbed.org/users/okini3939/notebook/lpc4088_madplayer/
Dependencies: I2SSlave SDFileSystem TLV320 mbed
player.h
- Committer:
- okini3939
- Date:
- 2014-02-18
- Revision:
- 0:8ba6230eefbd
File content as of revision 0:8ba6230eefbd:
#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);