summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/SOURCES54
-rw-r--r--apps/fracmul.h2
-rw-r--r--apps/plugins/lrcplayer.c1
-rw-r--r--lib/rbcodec/SOURCES54
-rw-r--r--lib/rbcodec/dsp/compressor.c (renamed from apps/compressor.c)0
-rw-r--r--lib/rbcodec/dsp/compressor.h (renamed from apps/compressor.h)0
-rw-r--r--lib/rbcodec/dsp/dsp.c (renamed from apps/dsp.c)0
-rw-r--r--lib/rbcodec/dsp/dsp.h (renamed from apps/dsp.h)0
-rw-r--r--lib/rbcodec/dsp/dsp_arm.S (renamed from apps/dsp_arm.S)0
-rw-r--r--lib/rbcodec/dsp/dsp_arm_v6.S (renamed from apps/dsp_arm_v6.S)0
-rw-r--r--lib/rbcodec/dsp/dsp_asm.h (renamed from apps/dsp_asm.h)0
-rw-r--r--lib/rbcodec/dsp/dsp_cf.S (renamed from apps/dsp_cf.S)0
-rw-r--r--lib/rbcodec/dsp/eq.c (renamed from apps/eq.c)0
-rw-r--r--lib/rbcodec/dsp/eq.h (renamed from apps/eq.h)0
-rw-r--r--lib/rbcodec/dsp/eq_arm.S (renamed from apps/eq_arm.S)0
-rw-r--r--lib/rbcodec/dsp/eq_cf.S (renamed from apps/eq_cf.S)0
-rw-r--r--lib/rbcodec/dsp/eqs/Acoustic.cfg (renamed from apps/eqs/Acoustic.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Bass.cfg (renamed from apps/eqs/Bass.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Classical.cfg (renamed from apps/eqs/Classical.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Default.cfg (renamed from apps/eqs/Default.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Disco.cfg (renamed from apps/eqs/Disco.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Electronic.cfg (renamed from apps/eqs/Electronic.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Hip-Hop.cfg (renamed from apps/eqs/Hip-Hop.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Jazz.cfg (renamed from apps/eqs/Jazz.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Lounge.cfg (renamed from apps/eqs/Lounge.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Pop.cfg (renamed from apps/eqs/Pop.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/R&B.cfg (renamed from apps/eqs/R&B.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Rock.cfg (renamed from apps/eqs/Rock.cfg)0
-rw-r--r--lib/rbcodec/dsp/eqs/Vocal.cfg (renamed from apps/eqs/Vocal.cfg)0
-rw-r--r--lib/rbcodec/dsp/tdspeed.c (renamed from apps/tdspeed.c)0
-rw-r--r--lib/rbcodec/dsp/tdspeed.h (renamed from apps/tdspeed.h)0
-rw-r--r--lib/rbcodec/metadata/a52.c (renamed from apps/metadata/a52.c)0
-rw-r--r--lib/rbcodec/metadata/adx.c (renamed from apps/metadata/adx.c)0
-rw-r--r--lib/rbcodec/metadata/aiff.c (renamed from apps/metadata/aiff.c)0
-rw-r--r--lib/rbcodec/metadata/ape.c (renamed from apps/metadata/ape.c)0
-rw-r--r--lib/rbcodec/metadata/asap.c (renamed from apps/metadata/asap.c)0
-rw-r--r--lib/rbcodec/metadata/asf.c (renamed from apps/metadata/asf.c)0
-rw-r--r--lib/rbcodec/metadata/au.c (renamed from apps/metadata/au.c)0
-rw-r--r--lib/rbcodec/metadata/ay.c (renamed from apps/metadata/ay.c)0
-rw-r--r--lib/rbcodec/metadata/flac.c (renamed from apps/metadata/flac.c)0
-rw-r--r--lib/rbcodec/metadata/gbs.c (renamed from apps/metadata/gbs.c)0
-rw-r--r--lib/rbcodec/metadata/hes.c (renamed from apps/metadata/hes.c)0
-rw-r--r--lib/rbcodec/metadata/id3tags.c (renamed from apps/metadata/id3tags.c)0
-rw-r--r--lib/rbcodec/metadata/kss.c (renamed from apps/metadata/kss.c)0
-rw-r--r--lib/rbcodec/metadata/metadata.c (renamed from apps/metadata.c)2
-rw-r--r--lib/rbcodec/metadata/metadata.h (renamed from apps/metadata.h)0
-rw-r--r--lib/rbcodec/metadata/metadata_common.c (renamed from apps/metadata/metadata_common.c)0
-rw-r--r--lib/rbcodec/metadata/metadata_common.h (renamed from apps/metadata/metadata_common.h)0
-rw-r--r--lib/rbcodec/metadata/metadata_parsers.h (renamed from apps/metadata/metadata_parsers.h)0
-rw-r--r--lib/rbcodec/metadata/mod.c (renamed from apps/metadata/mod.c)0
-rw-r--r--lib/rbcodec/metadata/monkeys.c (renamed from apps/metadata/monkeys.c)0
-rw-r--r--lib/rbcodec/metadata/mp3.c (renamed from apps/metadata/mp3.c)0
-rw-r--r--lib/rbcodec/metadata/mp3data.c (renamed from apps/mp3data.c)0
-rw-r--r--lib/rbcodec/metadata/mp3data.h (renamed from apps/mp3data.h)0
-rw-r--r--lib/rbcodec/metadata/mp4.c (renamed from apps/metadata/mp4.c)0
-rw-r--r--lib/rbcodec/metadata/mpc.c (renamed from apps/metadata/mpc.c)0
-rw-r--r--lib/rbcodec/metadata/nsf.c (renamed from apps/metadata/nsf.c)0
-rw-r--r--lib/rbcodec/metadata/ogg.c (renamed from apps/metadata/ogg.c)0
-rw-r--r--lib/rbcodec/metadata/oma.c (renamed from apps/metadata/oma.c)0
-rw-r--r--lib/rbcodec/metadata/replaygain.c (renamed from apps/replaygain.c)0
-rw-r--r--lib/rbcodec/metadata/replaygain.h (renamed from apps/replaygain.h)0
-rw-r--r--lib/rbcodec/metadata/rm.c (renamed from apps/metadata/rm.c)0
-rw-r--r--lib/rbcodec/metadata/sgc.c (renamed from apps/metadata/sgc.c)0
-rw-r--r--lib/rbcodec/metadata/sid.c (renamed from apps/metadata/sid.c)0
-rw-r--r--lib/rbcodec/metadata/smaf.c (renamed from apps/metadata/smaf.c)0
-rw-r--r--lib/rbcodec/metadata/spc.c (renamed from apps/metadata/spc.c)0
-rw-r--r--lib/rbcodec/metadata/tta.c (renamed from apps/metadata/tta.c)0
-rw-r--r--lib/rbcodec/metadata/vgm.c (renamed from apps/metadata/vgm.c)0
-rw-r--r--lib/rbcodec/metadata/vorbis.c (renamed from apps/metadata/vorbis.c)0
-rw-r--r--lib/rbcodec/metadata/vox.c (renamed from apps/metadata/vox.c)0
-rw-r--r--lib/rbcodec/metadata/wave.c (renamed from apps/metadata/wave.c)0
-rw-r--r--lib/rbcodec/metadata/wavpack.c (renamed from apps/metadata/wavpack.c)0
-rw-r--r--lib/rbcodec/rbcodec.make19
-rw-r--r--lib/rbcodec/test/SOURCES41
-rw-r--r--lib/rbcodec/test/warble.make8
-rwxr-xr-xtools/buildzip.pl2
-rw-r--r--tools/database/SOURCES11
-rw-r--r--tools/database/database.make4
-rw-r--r--tools/root.make9
-rw-r--r--uisimulator/uisimulator.make2
80 files changed, 97 insertions, 112 deletions
diff --git a/apps/SOURCES b/apps/SOURCES
index e199021..45eb076 100644
--- a/apps/SOURCES
+++ b/apps/SOURCES
@@ -26,7 +26,6 @@ menus/audiohw_eq_menu.c
menus/eq_menu.c
buffering.c
voice_thread.c
-replaygain.c
#else /* !SWCODEC */
mpeg.c
#endif
@@ -42,7 +41,6 @@ menus/sound_menu.c
menus/time_menu.c
#endif
misc.c
-mp3data.c
onplay.c
playlist.c
playlist_catalog.c
@@ -168,29 +166,13 @@ pcmbuf.c
codec_thread.c
playback.c
codecs.c
-dsp.c
-compressor.c
#ifndef HAVE_HARDWARE_BEEP
beep.c
#endif
-#ifdef HAVE_PITCHSCREEN
-tdspeed.c
-#endif
#ifdef HAVE_RECORDING
enc_config.c
recorder/pcm_record.c
#endif
-eq.c
-#if defined(CPU_COLDFIRE)
-dsp_cf.S
-eq_cf.S
-#elif defined(CPU_ARM)
-dsp_arm.S
-#if ARM_ARCH >= 6
-dsp_arm_v6.S
-#endif
-eq_arm.S
-#endif
#endif
#ifdef USB_ENABLE_HID
usb_keymaps.c
@@ -198,42 +180,6 @@ usb_keymaps.c
#ifndef USB_NONE
gui/usb_screen.c
#endif
-metadata.c
-metadata/id3tags.c
-metadata/mp3.c
-#if CONFIG_CODEC == SWCODEC
-metadata/metadata_common.c
-metadata/aiff.c
-metadata/ape.c
-metadata/asf.c
-metadata/adx.c
-metadata/flac.c
-metadata/monkeys.c
-metadata/mp4.c
-metadata/mpc.c
-metadata/ogg.c
-metadata/sid.c
-metadata/mod.c
-metadata/spc.c
-metadata/vorbis.c
-metadata/wave.c
-metadata/wavpack.c
-metadata/a52.c
-metadata/asap.c
-metadata/rm.c
-metadata/nsf.c
-metadata/oma.c
-metadata/smaf.c
-metadata/au.c
-metadata/vox.c
-metadata/tta.c
-metadata/ay.c
-metadata/gbs.c
-metadata/hes.c
-metadata/sgc.c
-metadata/vgm.c
-metadata/kss.c
-#endif
#ifdef HAVE_TAGCACHE
tagcache.c
#endif
diff --git a/apps/fracmul.h b/apps/fracmul.h
index 6aaedaf..47b85e5 100644
--- a/apps/fracmul.h
+++ b/apps/fracmul.h
@@ -4,7 +4,7 @@
#include <stdint.h>
#include "gcc_extensions.h"
-/** FRACTIONAL MULTIPLICATION - TAKEN FROM apps/dsp.h
+/** FRACTIONAL MULTIPLICATION
* Multiply two fixed point numbers with 31 fractional bits:
* FRACMUL(x, y)
*
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c
index cc0128b..97385ff 100644
--- a/apps/plugins/lrcplayer.c
+++ b/apps/plugins/lrcplayer.c
@@ -1113,7 +1113,6 @@ static void load_lrc_file(void)
/*******************************
* read lyrics from id3
*******************************/
-/* taken from apps/metadata/mp3.c */
static unsigned long unsync(unsigned long b0, unsigned long b1,
unsigned long b2, unsigned long b3)
{
diff --git a/lib/rbcodec/SOURCES b/lib/rbcodec/SOURCES
new file mode 100644
index 0000000..3ac2660
--- /dev/null
+++ b/lib/rbcodec/SOURCES
@@ -0,0 +1,54 @@
+metadata/metadata.c
+metadata/id3tags.c
+metadata/mp3.c
+metadata/mp3data.c
+#if CONFIG_CODEC == SWCODEC
+dsp/compressor.c
+dsp/dsp.c
+dsp/eq.c
+# if defined(CPU_COLDFIRE)
+dsp/dsp_cf.S
+dsp/eq_cf.S
+# elif defined(CPU_ARM)
+dsp/dsp_arm.S
+dsp/eq_arm.S
+# if ARM_ARCH >= 6
+dsp/dsp_arm_v6.S
+# endif
+# endif
+# ifdef HAVE_PITCHSCREEN
+dsp/tdspeed.c
+# endif
+metadata/replaygain.c
+metadata/metadata_common.c
+metadata/a52.c
+metadata/adx.c
+metadata/aiff.c
+metadata/ape.c
+metadata/asap.c
+metadata/asf.c
+metadata/au.c
+metadata/ay.c
+metadata/flac.c
+metadata/gbs.c
+metadata/hes.c
+metadata/kss.c
+metadata/mod.c
+metadata/monkeys.c
+metadata/mp4.c
+metadata/mpc.c
+metadata/nsf.c
+metadata/ogg.c
+metadata/oma.c
+metadata/rm.c
+metadata/sgc.c
+metadata/sid.c
+metadata/smaf.c
+metadata/spc.c
+metadata/tta.c
+metadata/vgm.c
+metadata/vorbis.c
+metadata/vox.c
+metadata/wave.c
+metadata/wavpack.c
+#endif
diff --git a/apps/compressor.c b/lib/rbcodec/dsp/compressor.c
index 3a8d52e..3a8d52e 100644
--- a/apps/compressor.c
+++ b/lib/rbcodec/dsp/compressor.c
diff --git a/apps/compressor.h b/lib/rbcodec/dsp/compressor.h
index 6154372..6154372 100644
--- a/apps/compressor.h
+++ b/lib/rbcodec/dsp/compressor.h
diff --git a/apps/dsp.c b/lib/rbcodec/dsp/dsp.c
index 4da5557..4da5557 100644
--- a/apps/dsp.c
+++ b/lib/rbcodec/dsp/dsp.c
diff --git a/apps/dsp.h b/lib/rbcodec/dsp/dsp.h
index 2a00f64..2a00f64 100644
--- a/apps/dsp.h
+++ b/lib/rbcodec/dsp/dsp.h
diff --git a/apps/dsp_arm.S b/lib/rbcodec/dsp/dsp_arm.S
index 7e36074..7e36074 100644
--- a/apps/dsp_arm.S
+++ b/lib/rbcodec/dsp/dsp_arm.S
diff --git a/apps/dsp_arm_v6.S b/lib/rbcodec/dsp/dsp_arm_v6.S
index 3994949..3994949 100644
--- a/apps/dsp_arm_v6.S
+++ b/lib/rbcodec/dsp/dsp_arm_v6.S
diff --git a/apps/dsp_asm.h b/lib/rbcodec/dsp/dsp_asm.h
index 7bf1837..7bf1837 100644
--- a/apps/dsp_asm.h
+++ b/lib/rbcodec/dsp/dsp_asm.h
diff --git a/apps/dsp_cf.S b/lib/rbcodec/dsp/dsp_cf.S
index cda811a..cda811a 100644
--- a/apps/dsp_cf.S
+++ b/lib/rbcodec/dsp/dsp_cf.S
diff --git a/apps/eq.c b/lib/rbcodec/dsp/eq.c
index 122a46a..122a46a 100644
--- a/apps/eq.c
+++ b/lib/rbcodec/dsp/eq.c
diff --git a/apps/eq.h b/lib/rbcodec/dsp/eq.h
index a44e915..a44e915 100644
--- a/apps/eq.h
+++ b/lib/rbcodec/dsp/eq.h
diff --git a/apps/eq_arm.S b/lib/rbcodec/dsp/eq_arm.S
index b0e1771..b0e1771 100644
--- a/apps/eq_arm.S
+++ b/lib/rbcodec/dsp/eq_arm.S
diff --git a/apps/eq_cf.S b/lib/rbcodec/dsp/eq_cf.S
index 30a28b9..30a28b9 100644
--- a/apps/eq_cf.S
+++ b/lib/rbcodec/dsp/eq_cf.S
diff --git a/apps/eqs/Acoustic.cfg b/lib/rbcodec/dsp/eqs/Acoustic.cfg
index 34b5ed8..34b5ed8 100644
--- a/apps/eqs/Acoustic.cfg
+++ b/lib/rbcodec/dsp/eqs/Acoustic.cfg
diff --git a/apps/eqs/Bass.cfg b/lib/rbcodec/dsp/eqs/Bass.cfg
index 2742459..2742459 100644
--- a/apps/eqs/Bass.cfg
+++ b/lib/rbcodec/dsp/eqs/Bass.cfg
diff --git a/apps/eqs/Classical.cfg b/lib/rbcodec/dsp/eqs/Classical.cfg
index bf2f9f9..bf2f9f9 100644
--- a/apps/eqs/Classical.cfg
+++ b/lib/rbcodec/dsp/eqs/Classical.cfg
diff --git a/apps/eqs/Default.cfg b/lib/rbcodec/dsp/eqs/Default.cfg
index d6f345f..d6f345f 100644
--- a/apps/eqs/Default.cfg
+++ b/lib/rbcodec/dsp/eqs/Default.cfg
diff --git a/apps/eqs/Disco.cfg b/lib/rbcodec/dsp/eqs/Disco.cfg
index f894f26..f894f26 100644
--- a/apps/eqs/Disco.cfg
+++ b/lib/rbcodec/dsp/eqs/Disco.cfg
diff --git a/apps/eqs/Electronic.cfg b/lib/rbcodec/dsp/eqs/Electronic.cfg
index e70c911..e70c911 100644
--- a/apps/eqs/Electronic.cfg
+++ b/lib/rbcodec/dsp/eqs/Electronic.cfg
diff --git a/apps/eqs/Hip-Hop.cfg b/lib/rbcodec/dsp/eqs/Hip-Hop.cfg
index 2d38425..2d38425 100644
--- a/apps/eqs/Hip-Hop.cfg
+++ b/lib/rbcodec/dsp/eqs/Hip-Hop.cfg
diff --git a/apps/eqs/Jazz.cfg b/lib/rbcodec/dsp/eqs/Jazz.cfg
index f576f9f..f576f9f 100644
--- a/apps/eqs/Jazz.cfg
+++ b/lib/rbcodec/dsp/eqs/Jazz.cfg
diff --git a/apps/eqs/Lounge.cfg b/lib/rbcodec/dsp/eqs/Lounge.cfg
index 39ae23a..39ae23a 100644
--- a/apps/eqs/Lounge.cfg
+++ b/lib/rbcodec/dsp/eqs/Lounge.cfg
diff --git a/apps/eqs/Pop.cfg b/lib/rbcodec/dsp/eqs/Pop.cfg
index 1d8cefe..1d8cefe 100644
--- a/apps/eqs/Pop.cfg
+++ b/lib/rbcodec/dsp/eqs/Pop.cfg
diff --git a/apps/eqs/R&B.cfg b/lib/rbcodec/dsp/eqs/R&B.cfg
index a460b58..a460b58 100644
--- a/apps/eqs/R&B.cfg
+++ b/lib/rbcodec/dsp/eqs/R&B.cfg
diff --git a/apps/eqs/Rock.cfg b/lib/rbcodec/dsp/eqs/Rock.cfg
index ec4f035..ec4f035 100644
--- a/apps/eqs/Rock.cfg
+++ b/lib/rbcodec/dsp/eqs/Rock.cfg
diff --git a/apps/eqs/Vocal.cfg b/lib/rbcodec/dsp/eqs/Vocal.cfg
index 1de754f..1de754f 100644
--- a/apps/eqs/Vocal.cfg
+++ b/lib/rbcodec/dsp/eqs/Vocal.cfg
diff --git a/apps/tdspeed.c b/lib/rbcodec/dsp/tdspeed.c
index 731be12..731be12 100644
--- a/apps/tdspeed.c
+++ b/lib/rbcodec/dsp/tdspeed.c
diff --git a/apps/tdspeed.h b/lib/rbcodec/dsp/tdspeed.h
index e91eeb1..e91eeb1 100644
--- a/apps/tdspeed.h
+++ b/lib/rbcodec/dsp/tdspeed.h
diff --git a/apps/metadata/a52.c b/lib/rbcodec/metadata/a52.c
index a8aad3f..a8aad3f 100644
--- a/apps/metadata/a52.c
+++ b/lib/rbcodec/metadata/a52.c
diff --git a/apps/metadata/adx.c b/lib/rbcodec/metadata/adx.c
index 7c341b4..7c341b4 100644
--- a/apps/metadata/adx.c
+++ b/lib/rbcodec/metadata/adx.c
diff --git a/apps/metadata/aiff.c b/lib/rbcodec/metadata/aiff.c
index 654f37c..654f37c 100644
--- a/apps/metadata/aiff.c
+++ b/lib/rbcodec/metadata/aiff.c
diff --git a/apps/metadata/ape.c b/lib/rbcodec/metadata/ape.c
index 0bd2477..0bd2477 100644
--- a/apps/metadata/ape.c
+++ b/lib/rbcodec/metadata/ape.c
diff --git a/apps/metadata/asap.c b/lib/rbcodec/metadata/asap.c
index 9e7f227..9e7f227 100644
--- a/apps/metadata/asap.c
+++ b/lib/rbcodec/metadata/asap.c
diff --git a/apps/metadata/asf.c b/lib/rbcodec/metadata/asf.c
index b815c09..b815c09 100644
--- a/apps/metadata/asf.c
+++ b/lib/rbcodec/metadata/asf.c
diff --git a/apps/metadata/au.c b/lib/rbcodec/metadata/au.c
index 94e7453..94e7453 100644
--- a/apps/metadata/au.c
+++ b/lib/rbcodec/metadata/au.c
diff --git a/apps/metadata/ay.c b/lib/rbcodec/metadata/ay.c
index 5d00264..5d00264 100644
--- a/apps/metadata/ay.c
+++ b/lib/rbcodec/metadata/ay.c
diff --git a/apps/metadata/flac.c b/lib/rbcodec/metadata/flac.c
index 2993717..2993717 100644
--- a/apps/metadata/flac.c
+++ b/lib/rbcodec/metadata/flac.c
diff --git a/apps/metadata/gbs.c b/lib/rbcodec/metadata/gbs.c
index 68f2b2a..68f2b2a 100644
--- a/apps/metadata/gbs.c
+++ b/lib/rbcodec/metadata/gbs.c
diff --git a/apps/metadata/hes.c b/lib/rbcodec/metadata/hes.c
index 6d99d52..6d99d52 100644
--- a/apps/metadata/hes.c
+++ b/lib/rbcodec/metadata/hes.c
diff --git a/apps/metadata/id3tags.c b/lib/rbcodec/metadata/id3tags.c
index 2dd1c66..2dd1c66 100644
--- a/apps/metadata/id3tags.c
+++ b/lib/rbcodec/metadata/id3tags.c
diff --git a/apps/metadata/kss.c b/lib/rbcodec/metadata/kss.c
index 2ae0cf5..2ae0cf5 100644
--- a/apps/metadata/kss.c
+++ b/lib/rbcodec/metadata/kss.c
diff --git a/apps/metadata.c b/lib/rbcodec/metadata/metadata.c
index 2a93c18..b91e00c 100644
--- a/apps/metadata.c
+++ b/lib/rbcodec/metadata/metadata.c
@@ -29,7 +29,7 @@
#include "cuesheet.h"
#include "metadata.h"
-#include "metadata/metadata_parsers.h"
+#include "metadata_parsers.h"
#if CONFIG_CODEC == SWCODEC
diff --git a/apps/metadata.h b/lib/rbcodec/metadata/metadata.h
index 55e4d76..55e4d76 100644
--- a/apps/metadata.h
+++ b/lib/rbcodec/metadata/metadata.h
diff --git a/apps/metadata/metadata_common.c b/lib/rbcodec/metadata/metadata_common.c
index e861644..e861644 100644
--- a/apps/metadata/metadata_common.c
+++ b/lib/rbcodec/metadata/metadata_common.c
diff --git a/apps/metadata/metadata_common.h b/lib/rbcodec/metadata/metadata_common.h
index db91729..db91729 100644
--- a/apps/metadata/metadata_common.h
+++ b/lib/rbcodec/metadata/metadata_common.h
diff --git a/apps/metadata/metadata_parsers.h b/lib/rbcodec/metadata/metadata_parsers.h
index 304e393..304e393 100644
--- a/apps/metadata/metadata_parsers.h
+++ b/lib/rbcodec/metadata/metadata_parsers.h
diff --git a/apps/metadata/mod.c b/lib/rbcodec/metadata/mod.c
index de76823..de76823 100644
--- a/apps/metadata/mod.c
+++ b/lib/rbcodec/metadata/mod.c
diff --git a/apps/metadata/monkeys.c b/lib/rbcodec/metadata/monkeys.c
index 4aff141..4aff141 100644
--- a/apps/metadata/monkeys.c
+++ b/lib/rbcodec/metadata/monkeys.c
diff --git a/apps/metadata/mp3.c b/lib/rbcodec/metadata/mp3.c
index feb1a52..feb1a52 100644
--- a/apps/metadata/mp3.c
+++ b/lib/rbcodec/metadata/mp3.c
diff --git a/apps/mp3data.c b/lib/rbcodec/metadata/mp3data.c
index 13ff0a8..13ff0a8 100644
--- a/apps/mp3data.c
+++ b/lib/rbcodec/metadata/mp3data.c
diff --git a/apps/mp3data.h b/lib/rbcodec/metadata/mp3data.h
index 762c2f4..762c2f4 100644
--- a/apps/mp3data.h
+++ b/lib/rbcodec/metadata/mp3data.h
diff --git a/apps/metadata/mp4.c b/lib/rbcodec/metadata/mp4.c
index df16443..df16443 100644
--- a/apps/metadata/mp4.c
+++ b/lib/rbcodec/metadata/mp4.c
diff --git a/apps/metadata/mpc.c b/lib/rbcodec/metadata/mpc.c
index 0b75ed0..0b75ed0 100644
--- a/apps/metadata/mpc.c
+++ b/lib/rbcodec/metadata/mpc.c
diff --git a/apps/metadata/nsf.c b/lib/rbcodec/metadata/nsf.c
index 2fa6f36..2fa6f36 100644
--- a/apps/metadata/nsf.c
+++ b/lib/rbcodec/metadata/nsf.c
diff --git a/apps/metadata/ogg.c b/lib/rbcodec/metadata/ogg.c
index 3a3cb29..3a3cb29 100644
--- a/apps/metadata/ogg.c
+++ b/lib/rbcodec/metadata/ogg.c
diff --git a/apps/metadata/oma.c b/lib/rbcodec/metadata/oma.c
index b82c0a4..b82c0a4 100644
--- a/apps/metadata/oma.c
+++ b/lib/rbcodec/metadata/oma.c
diff --git a/apps/replaygain.c b/lib/rbcodec/metadata/replaygain.c
index a178321..a178321 100644
--- a/apps/replaygain.c
+++ b/lib/rbcodec/metadata/replaygain.c
diff --git a/apps/replaygain.h b/lib/rbcodec/metadata/replaygain.h
index 215464d..215464d 100644
--- a/apps/replaygain.h
+++ b/lib/rbcodec/metadata/replaygain.h
diff --git a/apps/metadata/rm.c b/lib/rbcodec/metadata/rm.c
index 27f541c..27f541c 100644
--- a/apps/metadata/rm.c
+++ b/lib/rbcodec/metadata/rm.c
diff --git a/apps/metadata/sgc.c b/lib/rbcodec/metadata/sgc.c
index 78cacb9..78cacb9 100644
--- a/apps/metadata/sgc.c
+++ b/lib/rbcodec/metadata/sgc.c
diff --git a/apps/metadata/sid.c b/lib/rbcodec/metadata/sid.c
index 50b879b..50b879b 100644
--- a/apps/metadata/sid.c
+++ b/lib/rbcodec/metadata/sid.c
diff --git a/apps/metadata/smaf.c b/lib/rbcodec/metadata/smaf.c
index 1b745d3..1b745d3 100644
--- a/apps/metadata/smaf.c
+++ b/lib/rbcodec/metadata/smaf.c
diff --git a/apps/metadata/spc.c b/lib/rbcodec/metadata/spc.c
index 1c02062..1c02062 100644
--- a/apps/metadata/spc.c
+++ b/lib/rbcodec/metadata/spc.c
diff --git a/apps/metadata/tta.c b/lib/rbcodec/metadata/tta.c
index 1d3d95f..1d3d95f 100644
--- a/apps/metadata/tta.c
+++ b/lib/rbcodec/metadata/tta.c
diff --git a/apps/metadata/vgm.c b/lib/rbcodec/metadata/vgm.c
index 9ea95b3..9ea95b3 100644
--- a/apps/metadata/vgm.c
+++ b/lib/rbcodec/metadata/vgm.c
diff --git a/apps/metadata/vorbis.c b/lib/rbcodec/metadata/vorbis.c
index 58bd781..58bd781 100644
--- a/apps/metadata/vorbis.c
+++ b/lib/rbcodec/metadata/vorbis.c
diff --git a/apps/metadata/vox.c b/lib/rbcodec/metadata/vox.c
index f6bc849..f6bc849 100644
--- a/apps/metadata/vox.c
+++ b/lib/rbcodec/metadata/vox.c
diff --git a/apps/metadata/wave.c b/lib/rbcodec/metadata/wave.c
index 45acea1..45acea1 100644
--- a/apps/metadata/wave.c
+++ b/lib/rbcodec/metadata/wave.c
diff --git a/apps/metadata/wavpack.c b/lib/rbcodec/metadata/wavpack.c
index f2811df..f2811df 100644
--- a/apps/metadata/wavpack.c
+++ b/lib/rbcodec/metadata/wavpack.c
diff --git a/lib/rbcodec/rbcodec.make b/lib/rbcodec/rbcodec.make
new file mode 100644
index 0000000..afa289b
--- /dev/null
+++ b/lib/rbcodec/rbcodec.make
@@ -0,0 +1,19 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+
+RBCODEC_LIB = $(RBCODEC_BLD)/librbcodec.a
+RBCODEC_SRC := $(call preprocess, $(RBCODEC_DIR)/SOURCES)
+RBCODEC_OBJ := $(call c2obj, $(RBCODEC_SRC))
+INCLUDES += -I$(RBCODEC_DIR) -I$(RBCODEC_DIR)/dsp -I$(RBCODEC_DIR)/metadata
+OTHER_SRC += $(RBCODEC_SRC)
+
+$(RBCODEC_BLD)/%.o: $(RBCODEC_DIR)/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $<)$(CC) $(CFLAGS) $(RBCODEC_CFLAGS) -c $< -o $@
+
+$(RBCODEC_LIB): $(RBCODEC_OBJ)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
diff --git a/lib/rbcodec/test/SOURCES b/lib/rbcodec/test/SOURCES
index 467115e..4c0d906 100644
--- a/lib/rbcodec/test/SOURCES
+++ b/lib/rbcodec/test/SOURCES
@@ -1,49 +1,8 @@
warble.c
-../../../apps/metadata.c
-../../../apps/replaygain.c
../../../firmware/buflib.c
../../../firmware/core_alloc.c
../../../firmware/common/strlcpy.c
../../../firmware/common/unicode.c
../../../firmware/common/structec.c
-../../../apps/mp3data.c
../../../apps/fixedpoint.c
../../../uisimulator/common/io.c
-../../../apps/compressor.c
-../../../apps/dsp.c
-../../../apps/eq.c
-../../../apps/tdspeed.c
-../../../apps/metadata/a52.c
-../../../apps/metadata/adx.c
-../../../apps/metadata/aiff.c
-../../../apps/metadata/ape.c
-../../../apps/metadata/asap.c
-../../../apps/metadata/asf.c
-../../../apps/metadata/au.c
-../../../apps/metadata/ay.c
-../../../apps/metadata/flac.c
-../../../apps/metadata/gbs.c
-../../../apps/metadata/hes.c
-../../../apps/metadata/id3tags.c
-../../../apps/metadata/kss.c
-../../../apps/metadata/metadata_common.c
-../../../apps/metadata/mod.c
-../../../apps/metadata/monkeys.c
-../../../apps/metadata/mp3.c
-../../../apps/metadata/mp4.c
-../../../apps/metadata/mpc.c
-../../../apps/metadata/nsf.c
-../../../apps/metadata/ogg.c
-../../../apps/metadata/oma.c
-../../../apps/metadata/rm.c
-../../../apps/metadata/sgc.c
-../../../apps/metadata/sid.c
-../../../apps/metadata/smaf.c
-../../../apps/metadata/spc.c
-../../../apps/metadata/tta.c
-../../../apps/metadata/vgm.c
-../../../apps/metadata/vorbis.c
-../../../apps/metadata/vox.c
-../../../apps/metadata/wave.c
-../../../apps/metadata/wavpack.c
-
diff --git a/lib/rbcodec/test/warble.make b/lib/rbcodec/test/warble.make
index 0b70e9a..11f7ab0 100644
--- a/lib/rbcodec/test/warble.make
+++ b/lib/rbcodec/test/warble.make
@@ -9,12 +9,15 @@
+RBCODEC_DIR = $(ROOTDIR)/lib/rbcodec
+RBCODEC_BLD = $(BUILDDIR)/lib/rbcodec
+
FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall
SRC= $(call preprocess, $(ROOTDIR)/lib/rbcodec/test/SOURCES)
INCLUDES += -I$(ROOTDIR)/apps -I$(ROOTDIR)/apps/codecs -I$(ROOTDIR)/apps/codecs/lib \
- -I$(ROOTDIR)/apps/gui -I$(ROOTDIR)/apps/metadata
+ -I$(ROOTDIR)/apps/gui
INCLUDES += -I$(ROOTDIR)/firmware/export -I$(ROOTDIR)/firmware/include \
-I$(ROOTDIR)/firmware/target/hosted \
-I$(ROOTDIR)/firmware/target/hosted/sdl
@@ -30,9 +33,10 @@ endif
include $(ROOTDIR)/tools/functions.make
include $(ROOTDIR)/apps/codecs/codecs.make
+include $(ROOTDIR)/lib/rbcodec/rbcodec.make
$(BUILDDIR)/$(BINARY): $(CODECS)
-$(BUILDDIR)/$(BINARY): $$(OBJ)
+$(BUILDDIR)/$(BINARY): $$(OBJ) $(RBCODEC_LIB)
@echo LD $(BINARY)
$(SILENT)$(HOSTCC) $(SIMFLAGS) $(LIBS) -o $@ $+
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index b4a152c..2aa990a 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -444,7 +444,7 @@ sub buildzip {
if($swcodec) {
glob_mkdir("$temp_dir/eqs");
- glob_copy("$ROOT/apps/eqs/*.cfg", "$temp_dir/eqs/"); # equalizer presets
+ glob_copy("$ROOT/lib/rbcodec/dsp/eqs/*.cfg", "$temp_dir/eqs/"); # equalizer presets
}
glob_mkdir("$temp_dir/wps");
diff --git a/tools/database/SOURCES b/tools/database/SOURCES
index 65d6ca6..9c60fb1 100644
--- a/tools/database/SOURCES
+++ b/tools/database/SOURCES
@@ -1,11 +1,6 @@
database.c
../../apps/fixedpoint.c
-../../apps/metadata.c
-#if CONFIG_CODEC == SWCODEC
-../../apps/replaygain.c
-#endif
../../apps/misc.c
-../../apps/mp3data.c
../../apps/tagcache.c
../../firmware/common/crc32.c
../../firmware/common/filefuncs.c
@@ -17,7 +12,9 @@ database.c
../../firmware/logf.c
../../uisimulator/common/io.c
#if CONFIG_CODEC != SWCODEC
-../../apps/metadata/id3tags.c
-../../apps/metadata/mp3.c
+../../lib/rbcodec/metadata/id3tags.c
+../../lib/rbcodec/metadata/metadata.c
+../../lib/rbcodec/metadata/mp3.c
+../../lib/rbcodec/metadata/mp3data.c
#endif
/* Caution. metadata files do not add!! */
diff --git a/tools/database/database.make b/tools/database/database.make
index 7d02a46..c7292a6 100644
--- a/tools/database/database.make
+++ b/tools/database/database.make
@@ -15,7 +15,7 @@ createsrc = $(shell cat $(1) > $(3); echo "\#if CONFIG_CODEC == SWCODEC" >> $(3)
echo "\#endif" >> $(3); \
echo $(3))
-METADATAS := $(subst $(ROOTDIR), ../.., $(wildcard $(ROOTDIR)/apps/metadata/*.c))
+METADATAS := $(subst $(ROOTDIR), ../.., $(wildcard $(ROOTDIR)/lib/rbcodec/metadata/*.c))
SRCFILE := $(call createsrc, $(TOOLSDIR)/database/SOURCES, \
$(METADATAS), \
@@ -28,6 +28,8 @@ INCLUDES = -I$(ROOTDIR)/apps/gui \
-I$(ROOTDIR)/firmware/include \
-I$(ROOTDIR)/apps \
-I$(ROOTDIR)/apps/recorder \
+ -I$(ROOTDIR)/lib/rbcodec \
+ -I$(ROOTDIR)/lib/rbcodec/metadata \
-I$(APPSDIR) \
-I$(BUILDDIR) \
diff --git a/tools/root.make b/tools/root.make
index 3231b73..1bac0d6 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -95,7 +95,10 @@ else ifneq (,$(findstring database,$(APP_TYPE)))
else ifneq (,$(findstring warble,$(APP_TYPE)))
include $(ROOTDIR)/lib/rbcodec/test/warble.make
else
+ RBCODEC_DIR = $(ROOTDIR)/lib/rbcodec
+ RBCODEC_BLD = $(BUILDDIR)/lib/rbcodec
include $(APPSDIR)/apps.make
+ include $(RBCODEC_DIR)/rbcodec.make
include $(APPSDIR)/lang/lang.make
ifdef SOFTWARECODECS
@@ -205,17 +208,19 @@ $(LINKROM): $(ROMLDS)
$(call PRINTS,PP $(@F))
$(call preprocess2file,$<,$@,-DLOADADDRESS=$(LOADADDRESS))
-$(BUILDDIR)/rockbox.elf : $$(OBJ) $$(FIRMLIB) $$(VOICESPEEXLIB) $$(SKINLIB) $$(LIBARMSUPPORT) $$(UNWARMINDER) $$(LINKRAM)
+$(BUILDDIR)/rockbox.elf : $$(OBJ) $$(FIRMLIB) $$(RBCODEC_LIB) $$(VOICESPEEXLIB) $$(SKINLIB) $$(LIBARMSUPPORT) $$(UNWARMINDER) $$(LINKRAM)
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \
-L$(BUILDDIR)/firmware -lfirmware \
+ -L$(RBCODEC_BLD) -lrbcodec \
-L$(BUILDDIR)/lib -lskin_parser $(LIBARMSUPPORT_LINK) \
$(UNWARMINDER_LINK) -L$(BUILDDIR)/apps/codecs \
$(VOICESPEEXLIB:lib%.a=-l%) -lgcc $(BOOTBOXLDOPTS) \
$(GLOBAL_LDOPTS) -T$(LINKRAM) -Wl,-Map,$(BUILDDIR)/rockbox.map
-$(BUILDDIR)/rombox.elf : $$(OBJ) $$(FIRMLIB) $$(VOICESPEEXLIB) $$(SKINLIB) $$(LIBARMSUPPORT) $$(UNWARMINDER) $$(LINKROM)
+$(BUILDDIR)/rombox.elf : $$(OBJ) $$(FIRMLIB) $$(RBCODEC_LIB) $$(VOICESPEEXLIB) $$(SKINLIB) $$(LIBARMSUPPORT) $$(UNWARMINDER) $$(LINKROM)
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \
-L$(BUILDDIR)/firmware -lfirmware \
+ -L$(RBCODEC_BLD) -lrbcodec \
-L$(BUILDDIR)/lib -lskin_parser $(LIBARMSUPPORT_LINK) \
$(UNWARMINDER_LINK) -L$(BUILDDIR)/apps/codecs \
$(VOICESPEEXLIB:lib%.a=-l%) -lgcc $(GLOBAL_LDOPTS) \
diff --git a/uisimulator/uisimulator.make b/uisimulator/uisimulator.make
index fc58f3a..be57e3c 100644
--- a/uisimulator/uisimulator.make
+++ b/uisimulator/uisimulator.make
@@ -30,7 +30,7 @@ $(SIMLIB): $$(SIMOBJ) $(UIBMP)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-$(BUILDDIR)/$(BINARY): $$(OBJ) $(SIMLIB) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB) $(UNWARMINDER)
+$(BUILDDIR)/$(BINARY): $$(OBJ) $(SIMLIB) $(VOICESPEEXLIB) $(FIRMLIB) $(RBCODEC_LIB) $(SKINLIB) $(UNWARMINDER)
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(SIMLIB) $(LDOPTS) $(GLOBAL_LDOPTS) \
-Wl,-Map,$(BUILDDIR)/rockbox.map