diff options
Diffstat (limited to 'apps/codecs.h')
-rw-r--r-- | apps/codecs.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index 85b73a4953..fb5675fd84 100644 --- a/apps/codecs.h +++ b/apps/codecs.h | |||
@@ -126,28 +126,28 @@ struct codec_api { | |||
126 | void* (*get_codec_memory)(size_t *size); | 126 | void* (*get_codec_memory)(size_t *size); |
127 | /* Insert PCM data into audio buffer for playback. Playback will start | 127 | /* Insert PCM data into audio buffer for playback. Playback will start |
128 | automatically. */ | 128 | automatically. */ |
129 | bool (*pcmbuf_insert)(const void *ch1, const void *ch2, const int count); | 129 | bool (*pcmbuf_insert)(const void *ch1, const void *ch2, int count); |
130 | /* Set song position in WPS (value in ms). */ | 130 | /* Set song position in WPS (value in ms). */ |
131 | void (*set_elapsed)(const unsigned int value); | 131 | void (*set_elapsed)(unsigned int value); |
132 | 132 | ||
133 | /* Read next <size> amount bytes from file buffer to <ptr>. | 133 | /* Read next <size> amount bytes from file buffer to <ptr>. |
134 | Will return number of bytes read or 0 if end of file. */ | 134 | Will return number of bytes read or 0 if end of file. */ |
135 | size_t (*read_filebuf)(void *ptr, const size_t size); | 135 | size_t (*read_filebuf)(void *ptr, size_t size); |
136 | /* Request pointer to file buffer which can be used to read | 136 | /* Request pointer to file buffer which can be used to read |
137 | <realsize> amount of data. <reqsize> tells the buffer system | 137 | <realsize> amount of data. <reqsize> tells the buffer system |
138 | how much data it should try to allocate. If <realsize> is 0, | 138 | how much data it should try to allocate. If <realsize> is 0, |
139 | end of file is reached. */ | 139 | end of file is reached. */ |
140 | void* (*request_buffer)(size_t *realsize, const size_t reqsize); | 140 | void* (*request_buffer)(size_t *realsize, size_t reqsize); |
141 | /* Advance file buffer position by <amount> amount of bytes. */ | 141 | /* Advance file buffer position by <amount> amount of bytes. */ |
142 | void (*advance_buffer)(const size_t amount); | 142 | void (*advance_buffer)(size_t amount); |
143 | /* Advance file buffer to a pointer location inside file buffer. */ | 143 | /* Advance file buffer to a pointer location inside file buffer. */ |
144 | void (*advance_buffer_loc)(void *ptr); | 144 | void (*advance_buffer_loc)(void *ptr); |
145 | /* Seek file buffer to position <newpos> beginning of file. */ | 145 | /* Seek file buffer to position <newpos> beginning of file. */ |
146 | bool (*seek_buffer)(const size_t newpos); | 146 | bool (*seek_buffer)(size_t newpos); |
147 | /* Codec should call this function when it has done the seeking. */ | 147 | /* Codec should call this function when it has done the seeking. */ |
148 | void (*seek_complete)(void); | 148 | void (*seek_complete)(void); |
149 | /* Calculate mp3 seek position from given time data in ms. */ | 149 | /* Calculate mp3 seek position from given time data in ms. */ |
150 | off_t (*mp3_get_filepos)(const int newtime); | 150 | off_t (*mp3_get_filepos)(int newtime); |
151 | /* Request file change from file buffer. Returns true is next | 151 | /* Request file change from file buffer. Returns true is next |
152 | track is available and changed. If return value is false, | 152 | track is available and changed. If return value is false, |
153 | codec should exit immediately with PLUGIN_OK status. */ | 153 | codec should exit immediately with PLUGIN_OK status. */ |
@@ -155,12 +155,12 @@ struct codec_api { | |||
155 | /* Free the buffer area of the current codec after its loaded */ | 155 | /* Free the buffer area of the current codec after its loaded */ |
156 | void (*discard_codec)(void); | 156 | void (*discard_codec)(void); |
157 | 157 | ||
158 | void (*set_offset)(const size_t value); | 158 | void (*set_offset)(size_t value); |
159 | /* Configure different codec buffer parameters. */ | 159 | /* Configure different codec buffer parameters. */ |
160 | void (*configure)(const int setting, const intptr_t value); | 160 | void (*configure)(int setting, intptr_t value); |
161 | 161 | ||
162 | /* kernel/ system */ | 162 | /* kernel/ system */ |
163 | void (*PREFIX(sleep))(const int ticks); | 163 | void (*PREFIX(sleep))(int ticks); |
164 | void (*yield)(void); | 164 | void (*yield)(void); |
165 | 165 | ||
166 | #if NUM_CORES > 1 | 166 | #if NUM_CORES > 1 |