MP3 Player without external hardware MP3 Player without external hardware. A software based MP3 player based on a modified version of libmad. Mono output (at the moment) via AnalogOut. Files are read from an USB drive. This is a demo program, it plays only one file at the moment. Documentation is in "main.cpp" and "config.h"

Dependencies:   mbed

Revision:
2:f28cf0afd021
Parent:
0:7627c79db971
--- a/config.h	Fri Nov 26 13:05:34 2010 +0000
+++ b/config.h	Sat Nov 27 17:27:33 2010 +0000
@@ -42,7 +42,12 @@
 
 # ifndef LIBMAD_CONFIG_H
 # define LIBMAD_CONFIG_H
+
+#if defined(TARGET_LPC1768)
 #include "mbed.h"
+void *mad_malloc(unsigned int sz);
+void reset_ahb_mem(void);
+#endif
 
 /* config.h.  Generated by configure.  */
 /* config.h.in.  Generated from configure.ac by autoheader.  */
@@ -53,6 +58,7 @@
 
 /* used by ethernet */
 #define AHBMEM ((void *)0x20080000)
+#define AHBMEMSIZE 16300
 
 #define FPM_DEFAULT
 /* Define to enable diagnostic debugging support. */
@@ -131,10 +137,10 @@
 /* #undef OPT_ACCURACY */
 
 /* Define to optimize for speed over accuracy. */
-/* #undef OPT_SPEED */
+/* #define OPT_SPEED */
 
 /* Define to enable a fast subband synthesis approximation optimization. */
-/* #undef OPT_SSO */
+/* #define OPT_SSO */
 
 /* Define to influence a strict interpretation of the ISO/IEC standards, even
    if this is in opposition with best accepted practices. */
@@ -182,4 +188,8 @@
 
 /* Define to `int' if <sys/types.h> does not define. */
 /* #undef pid_t */
+
+
+/* Define mad_malloc to malloc if no special mem handling required */
+
 #endif