From ebadcc633ae8ad2a6048aff9c815cdb37f012e44 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Sat, 15 Apr 2006 02:03:11 +0000 Subject: Put new_track on the codec_api, and use it instead of the reload_codec variable in most places. Should help with problems people have had with GUI vs. playback sync. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9670 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.c | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'apps/codecs.c') diff --git a/apps/codecs.c b/apps/codecs.c index c332d7a..9a0688b 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -73,22 +73,23 @@ struct codec_api ci = { NULL, /* id3 */ NULL, /* taginfo_ready */ false, /* stop_codec */ - false, /* reload_codec */ + 0, /* new_track */ 0, /* seek_time */ - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, + NULL, /* get_codec_memory */ + NULL, /* pcmbuf_insert */ + NULL, /* pcmbuf_insert_split */ + NULL, /* set_elapsed */ + NULL, /* read_filebuf */ + NULL, /* request_buffer */ + NULL, /* advance_buffer */ + NULL, /* advance_buffer_loc */ + NULL, /* seek_buffer */ + NULL, /* seek_complete */ + NULL, /* mp3_get_filepos */ + NULL, /* request_next_track */ + NULL, /* discard_codec */ + NULL, /* set_offset */ + NULL, /* configure */ gui_syncsplash, @@ -210,8 +211,6 @@ struct codec_api ci = { /* new stuff at the end, sort into place next time the API gets incompatible */ - NULL, /* discard_codec */ - }; int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap, -- cgit v1.1