CXX_BUILD buildfix
This commit is contained in:
parent
e5ed82858f
commit
c78ce113b4
|
@ -2694,6 +2694,10 @@ typedef struct
|
||||||
|
|
||||||
static int cheevos_iterate(coro_t* coro)
|
static int cheevos_iterate(coro_t* coro)
|
||||||
{
|
{
|
||||||
|
ssize_t num_read = 0;
|
||||||
|
size_t to_read = 4096;
|
||||||
|
uint8_t *buffer = NULL;
|
||||||
|
const char *end = NULL;
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
/* Negative values because CORO_SUB generates positive values */
|
/* Negative values because CORO_SUB generates positive values */
|
||||||
|
@ -2802,9 +2806,7 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
uint8_t *buffer = (uint8_t*)DATA + LEN;
|
buffer = (uint8_t*)DATA + LEN;
|
||||||
size_t to_read = 4096;
|
|
||||||
ssize_t num_read;
|
|
||||||
|
|
||||||
if (to_read > COUNT)
|
if (to_read > COUNT)
|
||||||
to_read = COUNT;
|
to_read = COUNT;
|
||||||
|
@ -2814,7 +2816,7 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
if (num_read <= 0)
|
if (num_read <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
LEN += num_read;
|
LEN += num_read;
|
||||||
COUNT -= num_read;
|
COUNT -= num_read;
|
||||||
|
|
||||||
if (COUNT == 0)
|
if (COUNT == 0)
|
||||||
|
@ -2839,7 +2841,7 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
while (EXT)
|
while (EXT)
|
||||||
{
|
{
|
||||||
unsigned hash;
|
unsigned hash;
|
||||||
const char *end = strchr(EXT, '|');
|
end = strchr(EXT, '|');
|
||||||
|
|
||||||
if (end)
|
if (end)
|
||||||
{
|
{
|
||||||
|
|
|
@ -386,7 +386,7 @@ static bool audio_mixer_play_ogg(
|
||||||
|
|
||||||
voice->types.ogg.resampler = resamp;
|
voice->types.ogg.resampler = resamp;
|
||||||
voice->types.ogg.resampler_data = resampler_data;
|
voice->types.ogg.resampler_data = resampler_data;
|
||||||
voice->types.ogg.buffer = ogg_buffer;
|
voice->types.ogg.buffer = (float*)ogg_buffer;
|
||||||
voice->types.ogg.buf_samples = samples;
|
voice->types.ogg.buf_samples = samples;
|
||||||
voice->types.ogg.ratio = ratio;
|
voice->types.ogg.ratio = ratio;
|
||||||
voice->types.ogg.stream = stb_vorbis;
|
voice->types.ogg.stream = stb_vorbis;
|
||||||
|
|
Loading…
Reference in New Issue