MP3 Player. You can change fwd/rev speed and skip. see: http://mbed.org/users/okini3939/notebook/lpc4088_madplayer/

Dependencies:   I2SSlave SDFileSystem TLV320 mbed

Committer:
okini3939
Date:
Tue Feb 18 00:22:50 2014 +0000
Revision:
0:8ba6230eefbd
1st build

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okini3939 0:8ba6230eefbd 1 /*
okini3939 0:8ba6230eefbd 2 * libmad - MPEG audio decoder library
okini3939 0:8ba6230eefbd 3 * Copyright (C) 2000-2004 Underbit Technologies, Inc.
okini3939 0:8ba6230eefbd 4 *
okini3939 0:8ba6230eefbd 5 * This program is free software; you can redistribute it and/or modify
okini3939 0:8ba6230eefbd 6 * it under the terms of the GNU General Public License as published by
okini3939 0:8ba6230eefbd 7 * the Free Software Foundation; either version 2 of the License, or
okini3939 0:8ba6230eefbd 8 * (at your option) any later version.
okini3939 0:8ba6230eefbd 9 *
okini3939 0:8ba6230eefbd 10 * This program is distributed in the hope that it will be useful,
okini3939 0:8ba6230eefbd 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
okini3939 0:8ba6230eefbd 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
okini3939 0:8ba6230eefbd 13 * GNU General Public License for more details.
okini3939 0:8ba6230eefbd 14 *
okini3939 0:8ba6230eefbd 15 * You should have received a copy of the GNU General Public License
okini3939 0:8ba6230eefbd 16 * along with this program; if not, write to the Free Software
okini3939 0:8ba6230eefbd 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
okini3939 0:8ba6230eefbd 18 *
okini3939 0:8ba6230eefbd 19 * $Id: bit.h,v 1.1 2010/11/23 20:12:57 andy Exp $
okini3939 0:8ba6230eefbd 20 */
okini3939 0:8ba6230eefbd 21
okini3939 0:8ba6230eefbd 22 # ifndef LIBMAD_BIT_H
okini3939 0:8ba6230eefbd 23 # define LIBMAD_BIT_H
okini3939 0:8ba6230eefbd 24
okini3939 0:8ba6230eefbd 25 struct mad_bitptr {
okini3939 0:8ba6230eefbd 26 unsigned char const *byte;
okini3939 0:8ba6230eefbd 27 unsigned short cache;
okini3939 0:8ba6230eefbd 28 unsigned short left;
okini3939 0:8ba6230eefbd 29 };
okini3939 0:8ba6230eefbd 30
okini3939 0:8ba6230eefbd 31 void mad_bit_init(struct mad_bitptr *, unsigned char const *);
okini3939 0:8ba6230eefbd 32
okini3939 0:8ba6230eefbd 33 # define mad_bit_finish(bitptr) /* nothing */
okini3939 0:8ba6230eefbd 34
okini3939 0:8ba6230eefbd 35 unsigned int mad_bit_length(struct mad_bitptr const *,
okini3939 0:8ba6230eefbd 36 struct mad_bitptr const *);
okini3939 0:8ba6230eefbd 37
okini3939 0:8ba6230eefbd 38 # define mad_bit_bitsleft(bitptr) ((bitptr)->left)
okini3939 0:8ba6230eefbd 39 unsigned char const *mad_bit_nextbyte(struct mad_bitptr const *);
okini3939 0:8ba6230eefbd 40
okini3939 0:8ba6230eefbd 41 void mad_bit_skip(struct mad_bitptr *, unsigned int);
okini3939 0:8ba6230eefbd 42 unsigned long mad_bit_read(struct mad_bitptr *, unsigned int);
okini3939 0:8ba6230eefbd 43 void mad_bit_write(struct mad_bitptr *, unsigned int, unsigned long);
okini3939 0:8ba6230eefbd 44
okini3939 0:8ba6230eefbd 45 unsigned short mad_bit_crc(struct mad_bitptr, unsigned int, unsigned short);
okini3939 0:8ba6230eefbd 46
okini3939 0:8ba6230eefbd 47 # endif