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"
version.cpp@2:f28cf0afd021, 2010-11-27 (annotated)
- Committer:
- Gruenfrosch
- Date:
- Sat Nov 27 17:27:33 2010 +0000
- Revision:
- 2:f28cf0afd021
- Parent:
- 0:7627c79db971
Version 3:
* moved another memory block into AHB RAM, giving more room for
* stereo buffer.
* moved content of decode() to main()
* decoding is now safe to be called multiple times (bug in older versions)
* Output routine now fills stereo buffer, DAC output sums channels,
* just for demonstration that stereo output could go here
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Gruenfrosch | 0:7627c79db971 | 1 | /* |
Gruenfrosch | 0:7627c79db971 | 2 | * libmad - MPEG audio decoder library |
Gruenfrosch | 0:7627c79db971 | 3 | * Copyright (C) 2000-2004 Underbit Technologies, Inc. |
Gruenfrosch | 0:7627c79db971 | 4 | * |
Gruenfrosch | 0:7627c79db971 | 5 | * This program is free software; you can redistribute it and/or modify |
Gruenfrosch | 0:7627c79db971 | 6 | * it under the terms of the GNU General Public License as published by |
Gruenfrosch | 0:7627c79db971 | 7 | * the Free Software Foundation; either version 2 of the License, or |
Gruenfrosch | 0:7627c79db971 | 8 | * (at your option) any later version. |
Gruenfrosch | 0:7627c79db971 | 9 | * |
Gruenfrosch | 0:7627c79db971 | 10 | * This program is distributed in the hope that it will be useful, |
Gruenfrosch | 0:7627c79db971 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Gruenfrosch | 0:7627c79db971 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Gruenfrosch | 0:7627c79db971 | 13 | * GNU General Public License for more details. |
Gruenfrosch | 0:7627c79db971 | 14 | * |
Gruenfrosch | 0:7627c79db971 | 15 | * You should have received a copy of the GNU General Public License |
Gruenfrosch | 0:7627c79db971 | 16 | * along with this program; if not, write to the Free Software |
Gruenfrosch | 0:7627c79db971 | 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Gruenfrosch | 0:7627c79db971 | 18 | * |
Gruenfrosch | 0:7627c79db971 | 19 | * $Id: version.c,v 1.1 2010/11/23 20:12:57 andy Exp $ |
Gruenfrosch | 0:7627c79db971 | 20 | */ |
Gruenfrosch | 0:7627c79db971 | 21 | |
Gruenfrosch | 0:7627c79db971 | 22 | # include "config.h" |
Gruenfrosch | 0:7627c79db971 | 23 | |
Gruenfrosch | 0:7627c79db971 | 24 | # include "global.h" |
Gruenfrosch | 0:7627c79db971 | 25 | |
Gruenfrosch | 0:7627c79db971 | 26 | # include "version.h" |
Gruenfrosch | 0:7627c79db971 | 27 | |
Gruenfrosch | 0:7627c79db971 | 28 | char const mad_version[] = "MPEG Audio Decoder " MAD_VERSION; |
Gruenfrosch | 0:7627c79db971 | 29 | char const mad_copyright[] = "Copyright (C) " MAD_PUBLISHYEAR " " MAD_AUTHOR; |
Gruenfrosch | 0:7627c79db971 | 30 | char const mad_author[] = MAD_AUTHOR " <" MAD_EMAIL ">"; |
Gruenfrosch | 0:7627c79db971 | 31 | |
Gruenfrosch | 0:7627c79db971 | 32 | char const mad_build[] = "" |
Gruenfrosch | 0:7627c79db971 | 33 | # if defined(DEBUG) |
Gruenfrosch | 0:7627c79db971 | 34 | "DEBUG " |
Gruenfrosch | 0:7627c79db971 | 35 | # elif defined(NDEBUG) |
Gruenfrosch | 0:7627c79db971 | 36 | "NDEBUG " |
Gruenfrosch | 0:7627c79db971 | 37 | # endif |
Gruenfrosch | 0:7627c79db971 | 38 | |
Gruenfrosch | 0:7627c79db971 | 39 | # if defined(EXPERIMENTAL) |
Gruenfrosch | 0:7627c79db971 | 40 | "EXPERIMENTAL " |
Gruenfrosch | 0:7627c79db971 | 41 | # endif |
Gruenfrosch | 0:7627c79db971 | 42 | |
Gruenfrosch | 0:7627c79db971 | 43 | # if defined(FPM_64BIT) |
Gruenfrosch | 0:7627c79db971 | 44 | "FPM_64BIT " |
Gruenfrosch | 0:7627c79db971 | 45 | # elif defined(FPM_INTEL) |
Gruenfrosch | 0:7627c79db971 | 46 | "FPM_INTEL " |
Gruenfrosch | 0:7627c79db971 | 47 | # elif defined(FPM_ARM) |
Gruenfrosch | 0:7627c79db971 | 48 | "FPM_ARM " |
Gruenfrosch | 0:7627c79db971 | 49 | # elif defined(FPM_MIPS) |
Gruenfrosch | 0:7627c79db971 | 50 | "FPM_MIPS " |
Gruenfrosch | 0:7627c79db971 | 51 | # elif defined(FPM_SPARC) |
Gruenfrosch | 0:7627c79db971 | 52 | "FPM_SPARC " |
Gruenfrosch | 0:7627c79db971 | 53 | # elif defined(FPM_PPC) |
Gruenfrosch | 0:7627c79db971 | 54 | "FPM_PPC " |
Gruenfrosch | 0:7627c79db971 | 55 | # elif defined(FPM_DEFAULT) |
Gruenfrosch | 0:7627c79db971 | 56 | "FPM_DEFAULT " |
Gruenfrosch | 0:7627c79db971 | 57 | # endif |
Gruenfrosch | 0:7627c79db971 | 58 | |
Gruenfrosch | 0:7627c79db971 | 59 | # if defined(ASO_IMDCT) |
Gruenfrosch | 0:7627c79db971 | 60 | "ASO_IMDCT " |
Gruenfrosch | 0:7627c79db971 | 61 | # endif |
Gruenfrosch | 0:7627c79db971 | 62 | # if defined(ASO_INTERLEAVE1) |
Gruenfrosch | 0:7627c79db971 | 63 | "ASO_INTERLEAVE1 " |
Gruenfrosch | 0:7627c79db971 | 64 | # endif |
Gruenfrosch | 0:7627c79db971 | 65 | # if defined(ASO_INTERLEAVE2) |
Gruenfrosch | 0:7627c79db971 | 66 | "ASO_INTERLEAVE2 " |
Gruenfrosch | 0:7627c79db971 | 67 | # endif |
Gruenfrosch | 0:7627c79db971 | 68 | # if defined(ASO_ZEROCHECK) |
Gruenfrosch | 0:7627c79db971 | 69 | "ASO_ZEROCHECK " |
Gruenfrosch | 0:7627c79db971 | 70 | # endif |
Gruenfrosch | 0:7627c79db971 | 71 | |
Gruenfrosch | 0:7627c79db971 | 72 | # if defined(OPT_SPEED) |
Gruenfrosch | 0:7627c79db971 | 73 | "OPT_SPEED " |
Gruenfrosch | 0:7627c79db971 | 74 | # elif defined(OPT_ACCURACY) |
Gruenfrosch | 0:7627c79db971 | 75 | "OPT_ACCURACY " |
Gruenfrosch | 0:7627c79db971 | 76 | # endif |
Gruenfrosch | 0:7627c79db971 | 77 | |
Gruenfrosch | 0:7627c79db971 | 78 | # if defined(OPT_SSO) |
Gruenfrosch | 0:7627c79db971 | 79 | "OPT_SSO " |
Gruenfrosch | 0:7627c79db971 | 80 | # endif |
Gruenfrosch | 0:7627c79db971 | 81 | |
Gruenfrosch | 0:7627c79db971 | 82 | # if defined(OPT_DCTO) /* never defined here */ |
Gruenfrosch | 0:7627c79db971 | 83 | "OPT_DCTO " |
Gruenfrosch | 0:7627c79db971 | 84 | # endif |
Gruenfrosch | 0:7627c79db971 | 85 | |
Gruenfrosch | 0:7627c79db971 | 86 | # if defined(OPT_STRICT) |
Gruenfrosch | 0:7627c79db971 | 87 | "OPT_STRICT " |
Gruenfrosch | 0:7627c79db971 | 88 | # endif |
Gruenfrosch | 0:7627c79db971 | 89 | ; |