MP3 Player. You can change fwd/rev speed and skip. see: http://mbed.org/users/okini3939/notebook/lpc4088_madplayer/
Dependencies: I2SSlave SDFileSystem TLV320 mbed
madplayer/lpc1768_mem.cpp
- Committer:
- okini3939
- Date:
- 2014-02-18
- Revision:
- 0:8ba6230eefbd
File content as of revision 0:8ba6230eefbd:
#include "mbed.h" #include "config.h" static char *free_ptr = (char *)AHBMEM; static int free_sz = AHBMEMSIZE; void reset_ahb_mem(void) { free_ptr = (char *)AHBMEM; free_sz = AHBMEMSIZE; } void *mad_malloc(unsigned int sz) { unsigned int nsz = ((sz >> 3) + 1) << 3; // align to 8 byte if(nsz < free_sz) { char *p = free_ptr; free_ptr += nsz; free_sz -=nsz; return(p); } else { return(malloc(sz)); } }