diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/aac.c | 1 | ||||
-rw-r--r-- | apps/codecs/alac.c | 5 |
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: | |||
91 | sound_samples_done = ci->id3->offset; | 91 | sound_samples_done = ci->id3->offset; |
92 | 92 | ||
93 | ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency)); | 93 | ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency)); |
94 | codec_set_replaygain(rb->id3); | ||
94 | 95 | ||
95 | stream_create(&input_stream,ci); | 96 | stream_create(&input_stream,ci); |
96 | 97 | ||
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) | |||
75 | goto exit; | 75 | goto exit; |
76 | } | 76 | } |
77 | 77 | ||
78 | while (!rb->taginfo_ready) | 78 | while (!*ci->taginfo_ready && !ci->stop_codec) |
79 | rb->yield(); | 79 | ci->sleep(1); |
80 | 80 | ||
81 | ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency)); | 81 | ci->configure(DSP_SET_FREQUENCY, (long *)(rb->id3->frequency)); |
82 | codec_set_replaygain(rb->id3); | ||
82 | 83 | ||
83 | stream_create(&input_stream,ci); | 84 | stream_create(&input_stream,ci); |
84 | 85 | ||