diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-04-15 02:03:11 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-15 02:03:11 +0000 |
| commit | ebadcc633ae8ad2a6048aff9c815cdb37f012e44 (patch) | |
| tree | 2749a0dccbec61669b99d83867b7cf18c661f3e0 /apps/codecs.c | |
| parent | ae33f37678311c5d6893aa526fad947bce912eff (diff) | |
| download | rockbox-ebadcc633ae8ad2a6048aff9c815cdb37f012e44.zip rockbox-ebadcc633ae8ad2a6048aff9c815cdb37f012e44.tar.gz rockbox-ebadcc633ae8ad2a6048aff9c815cdb37f012e44.tar.bz2 rockbox-ebadcc633ae8ad2a6048aff9c815cdb37f012e44.tar.xz | |
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
Diffstat (limited to 'apps/codecs.c')
| -rw-r--r-- | apps/codecs.c | 33 |
1 files changed, 16 insertions, 17 deletions
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, |