@@ -64,7 +64,7 @@ static void mv88w8618_audio_callback(void *opaque, int free_out, int free_in)
int16_t *codec_buffer;
int8_t buf[4096];
int8_t *mem_buffer;
- int pos, block_size;
+ size_t pos, block_size;
if (!(s->playback_mode & MP_AUDIO_PLAYBACK_EN)) {
return;
@@ -195,7 +195,7 @@ static void ac97_in_cb(void *opaque, int avail_b)
}
while (temp) {
- int acquired, to_copy;
+ size_t acquired, to_copy;
to_copy = audio_MIN(temp, sizeof(buf));
acquired = AUD_read(s->voice_in, buf, to_copy);
@@ -238,7 +238,7 @@ static void ac97_out_cb(void *opaque, int free_b)
}
while (temp) {
- int copied, to_copy;
+ size_t copied, to_copy;
to_copy = audio_MIN(temp, sizeof(buf));
cpu_physical_memory_read(addr, buf, to_copy);