diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-09-15 05:29:26 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-09-15 05:29:26 +0000 |
| commit | ba966c17614fc2de2b443a82071415b194753aa4 (patch) | |
| tree | 85b1af551200ab551b4e52a57008ca92ca454e29 /apps/plugin.h | |
| parent | 0c1a2c7651c0727f2a5565e1302f50f64202a9f6 (diff) | |
| download | rockbox-ba966c17614fc2de2b443a82071415b194753aa4.zip rockbox-ba966c17614fc2de2b443a82071415b194753aa4.tar.gz rockbox-ba966c17614fc2de2b443a82071415b194753aa4.tar.bz2 rockbox-ba966c17614fc2de2b443a82071415b194753aa4.tar.xz | |
Archos recording/playback: (1) Xing header creation: * Now estimates the framecount from the recording time if the MAS frame counter saturates, so it always writes a valid Xing header. * Reverted my brainless short-xing-header change. This was only valid for layer 3. (2) Xing/VBRI header evaluation: Fixed possible overflow in bitrate calculation. (3) MPEG thread: Avoid double chunk size limiting for the rare case of 8 MB modded Ondios.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 01ace98..5cc9c1b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -89,12 +89,12 @@ #endif /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 50 +#define PLUGIN_API_VERSION 51 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 50 +#define PLUGIN_MIN_API_VERSION 51 /* plugin return codes */ enum plugin_status { @@ -404,9 +404,9 @@ struct plugin_api { bool (*mp3info)(struct mp3entry *entry, const char *filename, bool v1first); int (*count_mp3_frames)(int fd, int startpos, int filesize, void (*progressfunc)(int)); - int (*create_xing_header)(int fd, int startpos, int filesize, - unsigned char *buf, int num_frames, - unsigned long header_template, + int (*create_xing_header)(int fd, long startpos, long filesize, + unsigned char *buf, unsigned long num_frames, + unsigned long rec_time, unsigned long header_template, void (*progressfunc)(int), bool generate_toc); unsigned long (*find_next_frame)(int fd, long *offset, long max_offset, unsigned long last_header); |