FS9795 - some playback cleanup.
commite42b2168c75cbe40a10381feff91129da28b5e35
authorjdgordon <jdgordon@a1c6a512-1295-4272-9138-f99709370657>
Mon, 6 Apr 2009 00:39:43 +0000 (6 00:39 +0000)
committerjdgordon <jdgordon@a1c6a512-1295-4272-9138-f99709370657>
Mon, 6 Apr 2009 00:39:43 +0000 (6 00:39 +0000)
treecb27e411394f716d26193433c66132072730ea70
parent30707da3979bc03319d18459c4e646bc27b06e82
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
12 files changed:
apps/appevents.h
apps/gui/gwps-common.c
apps/gui/gwps.c
apps/gui/gwps.h
apps/gui/wps_parser.c
apps/iap.c
apps/mpeg.c
apps/playback.c
apps/plugin.c
apps/plugin.h
firmware/export/audio.h
firmware/export/iap.h