diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-04-17 19:59:16 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-17 19:59:16 +0000 |
| commit | 095ae809eb634d239a98db47c90d92dc302a2283 (patch) | |
| tree | 4db031ca9e5e32eb435d5e173a9af0f60c3a275b | |
| parent | 6b90467f698fb5611b6cfe3ff2c9b06bef1cb248 (diff) | |
| download | rockbox-095ae809eb634d239a98db47c90d92dc302a2283.zip rockbox-095ae809eb634d239a98db47c90d92dc302a2283.tar.gz rockbox-095ae809eb634d239a98db47c90d92dc302a2283.tar.bz2 rockbox-095ae809eb634d239a98db47c90d92dc302a2283.tar.xz | |
Reduce code size when logf is off. Add a todo. Undo a previous fix that broke crossfade on manual track changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9708 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playback.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c index 0a43d95..3f4aee3 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -17,6 +17,8 @@ * ****************************************************************************/ +/* TODO: Fast codecs seem to cause badness on track skipping (stop, old audio, + * then new audio). Investigate the CFL_FLUSH mode used for all track skips */ /* TODO: Check for a possibly broken codepath on a rapid skip, stop event */ /* TODO: Can use the track changed callback to detect end of track and seek * in the previous track until this happens */ @@ -745,7 +747,6 @@ static bool buffer_wind_backward(int new_track_ridx, int old_track_ridx) { static void audio_update_trackinfo(void) { - logf("sk2:%s",playlist_peek(0)); ci.filesize = cur_ti->filesize; cur_ti->id3.elapsed = 0; cur_ti->id3.offset = 0; @@ -1834,10 +1835,7 @@ static bool load_next_track(void) { manual_skip = false; } else - { manual_skip = true; - pcmbuf_play_stop(); - } cpu_boost(true); queue_post(&audio_queue, Q_AUDIO_CHECK_NEW_TRACK, 0); @@ -2586,6 +2584,7 @@ void mpeg_id3_options(bool _v1first) v1first = _v1first; } +#if (ROCKBOX_HAS_LOGF == 1) void test_buffer_event(struct mp3entry *id3, bool last_track) { (void)id3; @@ -2602,6 +2601,15 @@ void test_unbuffer_event(struct mp3entry *id3, bool last_track) logf("ube:%d%s", last_track, id3->path); } +void test_track_changed_event(struct mp3entry *id3) +{ + (void)id3; + + logf("tce:%s", id3->artist); + logf("tce:%s", id3->album); +} +#endif + static void playback_init(void) { static bool voicetagtrue = true; @@ -2615,8 +2623,11 @@ static void playback_init(void) pcm_rec_mux(0); #endif +#if (ROCKBOX_HAS_LOGF == 1) audio_set_track_buffer_event(test_buffer_event); audio_set_track_unbuffer_event(test_unbuffer_event); + audio_set_track_changed_event(test_track_changed_event); +#endif /* Initialize codec api. */ ci.read_filebuf = codec_filebuf_callback; |