summaryrefslogtreecommitdiff
path: root/firmware/enc_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/enc_base.c')
-rw-r--r--firmware/enc_base.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/firmware/enc_base.c b/firmware/enc_base.c
new file mode 100644
index 0000000000..e346064fe2
--- /dev/null
+++ b/firmware/enc_base.c
@@ -0,0 +1,46 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 Michael Sevakis
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#include "config.h"
20#include "audio.h"
21
22/** mp3_enc.codec **/
23
24/* These are in descending order rather than in MPEG frequency index
25 order */
26const unsigned long mp3_enc_sampr[MP3_ENC_NUM_SAMPR] =
27{
28 48000, 44100, 32000, /* MPEG 1 */
29 24000, 22050, 16000, /* MPEG 2 */
30#if 0
31 12000, 11025, 8000, /* MPEG 2.5 */
32#endif
33};
34
35/* All bitrates used in the MPA L3 standard */
36const unsigned long mp3_enc_bitr[MP3_ENC_NUM_BITR] =
37{
38 8, 16, 24, 32, 40, 48, 56, 64, 80,
39 96, 112, 128, 144, 160, 192, 224, 256, 320
40};
41
42/** wav_enc.codec **/
43
44/** wavpack_enc.codec **/
45
46/** public functions **/