forked from len0rd/rockbox
Fix warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9230 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12f3fec388
commit
c76904be53
8 changed files with 10 additions and 10 deletions
|
|
@ -128,7 +128,7 @@ extern char iend[];
|
|||
/* this is the codec entry point */
|
||||
enum codec_status codec_start(struct codec_api *api)
|
||||
{
|
||||
long n;
|
||||
size_t n;
|
||||
unsigned char *filebuf;
|
||||
int sample_loc;
|
||||
int retval;
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
}
|
||||
|
||||
/* Request the required number of bytes from the input buffer */
|
||||
buffer=ci->request_buffer((long*)&n,sample_byte_size);
|
||||
buffer=ci->request_buffer(&n,sample_byte_size);
|
||||
|
||||
/* Decode one block - returned samples will be host-endian */
|
||||
rb->yield();
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ next_track:
|
|||
ci->yield();
|
||||
|
||||
/* assume the AIFF header is less than 1024 bytes */
|
||||
buf = ci->request_buffer((long *)&n, 1024);
|
||||
buf = ci->request_buffer(&n, 1024);
|
||||
if (n < 44) {
|
||||
i = CODEC_ERROR;
|
||||
goto exit;
|
||||
|
|
@ -235,7 +235,7 @@ next_track:
|
|||
bytesdone = newpos;
|
||||
ci->seek_complete();
|
||||
}
|
||||
aifbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize);
|
||||
aifbuf = (uint8_t *)ci->request_buffer(&n, chunksize);
|
||||
|
||||
if (n == 0)
|
||||
break; /* End of stream */
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
|
||||
/* Request the required number of bytes from the input buffer */
|
||||
|
||||
buffer=ci->request_buffer((long*)&n,sample_byte_size);
|
||||
buffer=ci->request_buffer(&n,sample_byte_size);
|
||||
if (n!=sample_byte_size) {
|
||||
retval = CODEC_ERROR;
|
||||
goto exit;
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
FLACContext fc;
|
||||
uint32_t samplesdone;
|
||||
uint32_t elapsedtime;
|
||||
long bytesleft;
|
||||
size_t bytesleft;
|
||||
int consumed;
|
||||
int res;
|
||||
int frame;
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ void init_mad(void)
|
|||
enum codec_status codec_start(struct codec_api *api)
|
||||
{
|
||||
int status = CODEC_OK;
|
||||
long size;
|
||||
size_t size;
|
||||
int file_end;
|
||||
int frame_skip; /* samples to skip current frame */
|
||||
int samples_to_skip; /* samples to skip in total for this file (at start) */
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ enum codec_status codec_start(struct codec_api* api)
|
|||
uint32_t elapsedtime;
|
||||
int8_t *buf;
|
||||
int consumed, res, nsamples;
|
||||
long bytesleft;
|
||||
size_t bytesleft;
|
||||
|
||||
/* Generic codec initialisation */
|
||||
rb = api;
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ next_track:
|
|||
ci->yield();
|
||||
|
||||
/* assume the WAV header is less than 1024 bytes */
|
||||
buf = ci->request_buffer((long *)&n, 1024);
|
||||
buf = ci->request_buffer(&n, 1024);
|
||||
if (n < 44) {
|
||||
i = CODEC_ERROR;
|
||||
goto exit;
|
||||
|
|
@ -449,7 +449,7 @@ next_track:
|
|||
bytesdone = newpos;
|
||||
ci->seek_complete();
|
||||
}
|
||||
wavbuf = (uint8_t *)ci->request_buffer((long *)&n, chunksize);
|
||||
wavbuf = (uint8_t *)ci->request_buffer(&n, chunksize);
|
||||
|
||||
if (n == 0)
|
||||
break; /* End of stream */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue