summaryrefslogtreecommitdiff
path: root/apps/codecs.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs.h')
-rw-r--r--apps/codecs.h12
1 files changed, 6 insertions, 6 deletions
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 {
139 int seek_time; 139 int seek_time;
140 140
141 /* Returns buffer to malloc array. Only codeclib should need this. */ 141 /* Returns buffer to malloc array. Only codeclib should need this. */
142 void* (*get_codec_memory)(size_t *size); 142 void* (*get_codec_memory)(long *size);
143 /* Insert PCM data into audio buffer for playback. Playback will start 143 /* Insert PCM data into audio buffer for playback. Playback will start
144 automatically. */ 144 automatically. */
145 bool (*audiobuffer_insert)(char *data, size_t length); 145 bool (*audiobuffer_insert)(char *data, long length);
146 bool (*audiobuffer_insert_split)(void *ch1, void *ch2, size_t length); 146 bool (*audiobuffer_insert_split)(void *ch1, void *ch2, long length);
147 /* Set song position in WPS (value in ms). */ 147 /* Set song position in WPS (value in ms). */
148 void (*set_elapsed)(unsigned int value); 148 void (*set_elapsed)(unsigned int value);
149 149
150 /* Read next <size> amount bytes from file buffer to <ptr>. 150 /* Read next <size> amount bytes from file buffer to <ptr>.
151 Will return number of bytes read or 0 if end of file. */ 151 Will return number of bytes read or 0 if end of file. */
152 size_t (*read_filebuf)(void *ptr, size_t size); 152 long (*read_filebuf)(void *ptr, long size);
153 /* Request pointer to file buffer which can be used to read 153 /* Request pointer to file buffer which can be used to read
154 <realsize> amount of data. <reqsize> tells the buffer system 154 <realsize> amount of data. <reqsize> tells the buffer system
155 how much data it should try to allocate. If <realsize> is 0, 155 how much data it should try to allocate. If <realsize> is 0,
156 end of file is reached. */ 156 end of file is reached. */
157 void* (*request_buffer)(size_t *realsize, size_t reqsize); 157 void* (*request_buffer)(long *realsize, long reqsize);
158 /* Advance file buffer position by <amount> amount of bytes. */ 158 /* Advance file buffer position by <amount> amount of bytes. */
159 void (*advance_buffer)(size_t amount); 159 void (*advance_buffer)(long amount);
160 /* Advance file buffer to a pointer location inside file buffer. */ 160 /* Advance file buffer to a pointer location inside file buffer. */
161 void (*advance_buffer_loc)(void *ptr); 161 void (*advance_buffer_loc)(void *ptr);
162 /* Seek file buffer to position <newpos> beginning of file. */ 162 /* Seek file buffer to position <newpos> beginning of file. */