forked from len0rd/rockbox
Rework track skipping. Full playback stop is no longer involved in track skipping. Further simplification of the play related functions can be achieved with this in place, but that's for later. Known skip related bug, high pitched noise sometimes, otherwise stuff is better
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9601 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fb6b475dee
commit
62ccbbb418
4 changed files with 306 additions and 277 deletions
|
|
@ -210,6 +210,8 @@ 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,
|
||||
|
|
@ -230,6 +232,7 @@ int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap,
|
|||
if (size - copy_n > 0) {
|
||||
memcpy(&codecbuf[copy_n], ptr2, size - copy_n);
|
||||
}
|
||||
api->discard_codec();
|
||||
}
|
||||
hdr = (struct codec_header *)codecbuf;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue