CXX_BUILD buildfix
This commit is contained in:
parent
794de84961
commit
20122d21ee
|
@ -184,7 +184,7 @@ audio_chunk_t* audio_mix_load_wav_file(const char *path, int sample_rate)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sample_rate != chunk->rwav->samplerate)
|
if (sample_rate != (int)chunk->rwav->samplerate)
|
||||||
{
|
{
|
||||||
chunk->resample = true;
|
chunk->resample = true;
|
||||||
chunk->ratio = (double)sample_rate / chunk->rwav->samplerate;
|
chunk->ratio = (double)sample_rate / chunk->rwav->samplerate;
|
||||||
|
|
|
@ -117,7 +117,7 @@ static void *nbio_linux_open(const char * filename, unsigned mode)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
handle = malloc(sizeof(struct nbio_linux_t));
|
handle = (struct nbio_linux_t*)malloc(sizeof(struct nbio_linux_t));
|
||||||
handle->fd = fd;
|
handle->fd = fd;
|
||||||
handle->ctx = ctx;
|
handle->ctx = ctx;
|
||||||
handle->len = lseek(fd, 0, SEEK_END);
|
handle->len = lseek(fd, 0, SEEK_END);
|
||||||
|
|
Loading…
Reference in New Issue