diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-04-06 00:39:43 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-04-06 00:39:43 +0000 |
commit | 843c7efaf8c953fc3bec40a7da0be3a5da9950df (patch) | |
tree | cb27e411394f716d26193433c66132072730ea70 /firmware | |
parent | 9188f0ffd7ce97101a5b2d697cc43072cd63b502 (diff) | |
download | rockbox-843c7efaf8c953fc3bec40a7da0be3a5da9950df.tar.gz rockbox-843c7efaf8c953fc3bec40a7da0be3a5da9950df.zip |
FS9795 - some playback cleanup.
* Use events to notify things when the track has changed instead of the nasty has_track_changed()
* Event for when the mp3entry for the next track is avilable (which allows alot more tags to be static which means less redrawing in the WPS)
* virtually guarentee that the mp3entry sturct returned by audio_current/next_track() is going to be valid for the duration of the current track. The only time it wont be now is during the time between the codec finishing the previous track and the next track actually starting (~2s), but this is not an issue as long as it is called again when the TRACK_CHANGED event happens (or just use the pointer that gives)
It is still possible to confuse the WPS with the next tracks id3 info being displayed but this should fix itself up faster than it used to (and be harder to do)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20633 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/audio.h | 1 | ||||
-rw-r--r-- | firmware/export/iap.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h index b4a2c82200..6236c6d5d1 100644 --- a/firmware/export/audio.h +++ b/firmware/export/audio.h | |||
@@ -89,7 +89,6 @@ void audio_ff_rewind(long newtime); | |||
89 | void audio_flush_and_reload_tracks(void); | 89 | void audio_flush_and_reload_tracks(void); |
90 | struct mp3entry* audio_current_track(void); | 90 | struct mp3entry* audio_current_track(void); |
91 | struct mp3entry* audio_next_track(void); | 91 | struct mp3entry* audio_next_track(void); |
92 | bool audio_has_changed_track(void); | ||
93 | void audio_get_debugdata(struct audio_debug *dbgdata); | 92 | void audio_get_debugdata(struct audio_debug *dbgdata); |
94 | #ifdef HAVE_DISK_STORAGE | 93 | #ifdef HAVE_DISK_STORAGE |
95 | void audio_set_buffer_margin(int seconds); | 94 | void audio_set_buffer_margin(int seconds); |
diff --git a/firmware/export/iap.h b/firmware/export/iap.h index 6c0b968ab0..d3afd6ba04 100644 --- a/firmware/export/iap.h +++ b/firmware/export/iap.h | |||
@@ -26,6 +26,6 @@ extern void iap_setup(int ratenum); | |||
26 | extern void iap_bitrate_set(int ratenum); | 26 | extern void iap_bitrate_set(int ratenum); |
27 | extern void iap_periodic(void); | 27 | extern void iap_periodic(void); |
28 | extern void iap_handlepkt(void); | 28 | extern void iap_handlepkt(void); |
29 | extern void iap_track_changed(void); | 29 | extern void iap_track_changed(void *ignored); |
30 | 30 | ||
31 | #endif | 31 | #endif |