From 85f49731065d0730022a92c3144c963ef8927a88 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Mon, 27 Jun 2005 19:29:49 +0000 Subject: Replaced some size_t with longs. That might solve some problems. Fixed also problem where codec buffer length indicator goes negative. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6898 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/codecs.h') diff --git a/apps/codecs.h b/apps/codecs.h index c373bdb8ba..c50af3030e 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -139,24 +139,24 @@ struct codec_api { int seek_time; /* Returns buffer to malloc array. Only codeclib should need this. */ - void* (*get_codec_memory)(size_t *size); + void* (*get_codec_memory)(long *size); /* Insert PCM data into audio buffer for playback. Playback will start automatically. */ - bool (*audiobuffer_insert)(char *data, size_t length); - bool (*audiobuffer_insert_split)(void *ch1, void *ch2, size_t length); + bool (*audiobuffer_insert)(char *data, long length); + bool (*audiobuffer_insert_split)(void *ch1, void *ch2, long length); /* Set song position in WPS (value in ms). */ void (*set_elapsed)(unsigned int value); /* Read next amount bytes from file buffer to . Will return number of bytes read or 0 if end of file. */ - size_t (*read_filebuf)(void *ptr, size_t size); + long (*read_filebuf)(void *ptr, long size); /* Request pointer to file buffer which can be used to read amount of data. tells the buffer system how much data it should try to allocate. If is 0, end of file is reached. */ - void* (*request_buffer)(size_t *realsize, size_t reqsize); + void* (*request_buffer)(long *realsize, long reqsize); /* Advance file buffer position by amount of bytes. */ - void (*advance_buffer)(size_t amount); + void (*advance_buffer)(long amount); /* Advance file buffer to a pointer location inside file buffer. */ void (*advance_buffer_loc)(void *ptr); /* Seek file buffer to position beginning of file. */ -- cgit v1.2.3