Add effective clockrate for realtime decoding to the displayed results of test_codec...
[kugel-rb.git] / firmware / enc_base.c
blob6cd421142cd7a76984fd26decbe9a3f81ac3afbd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Michael Sevakis
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #include "config.h"
20 #include "audio.h"
22 /** aiff_enc.codec **/
24 /** mp3_enc.codec **/
26 /* These are in descending order rather than in MPEG frequency index
27 order */
28 const unsigned long mp3_enc_sampr[MP3_ENC_NUM_SAMPR] =
30 48000, 44100, 32000, /* MPEG 1 */
31 24000, 22050, 16000, /* MPEG 2 */
32 #if 0
33 12000, 11025, 8000, /* MPEG 2.5 */
34 #endif
37 /* All bitrates used in the MPA L3 standard */
38 const unsigned long mp3_enc_bitr[MP3_ENC_NUM_BITR] =
40 8, 16, 24, 32, 40, 48, 56, 64, 80,
41 96, 112, 128, 144, 160, 192, 224, 256, 320
44 /** wav_enc.codec **/
46 /** wavpack_enc.codec **/
48 /** public functions **/