summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2006-11-23 20:05:14 +0000
committerMagnus Holmgren <magnushol@gmail.com>2006-11-23 20:05:14 +0000
commitaf05296a8209c562a4667e356bd236ac3faac804 (patch)
tree7c7f0dad77af7dfcbb1c86d48d3d04a75cda5f09
parent1ac20995c3be1ca890862f0ca24ef76473789fea (diff)
downloadrockbox-af05296a8209c562a4667e356bd236ac3faac804.tar.gz
rockbox-af05296a8209c562a4667e356bd236ac3faac804.zip
Enable ReplayGain processing for AAC and ALAC (not really tested though). Also, use the 'standard' wait-for-metadata loop in the ALAC decoder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11580 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/aac.c1
-rw-r--r--apps/codecs/alac.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c
index 56c2a799ec..a2248c6437 100644
--- a/apps/codecs/aac.c
+++ b/apps/codecs/aac.c
@@ -91,6 +91,7 @@ next_track:
sound_samples_done = ci->id3->offset;
ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency));
+ codec_set_replaygain(rb->id3);
stream_create(&input_stream,ci);
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c
index 06c81544cd..d65cdb7129 100644
--- a/apps/codecs/alac.c
+++ b/apps/codecs/alac.c
@@ -75,10 +75,11 @@ enum codec_status codec_start(struct codec_api* api)
goto exit;
}
- while (!rb->taginfo_ready)
- rb->yield();
+ while (!*ci->taginfo_ready && !ci->stop_codec)
+ ci->sleep(1);
ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency));
+ codec_set_replaygain(rb->id3);
stream_create(&input_stream,ci);