diff --git a/nemu/src/device/audio.c b/nemu/src/device/audio.c index f2cd05c..7263ae8 100644 --- a/nemu/src/device/audio.c +++ b/nemu/src/device/audio.c @@ -45,7 +45,7 @@ static void audio_callback(void *userdata, uint8_t *stream, int len) { // memcpy(stream, sbuf + pos_read, to_end_cnt); // memcpy(stream + to_end_cnt, sbuf, out_bound_cnt); } else { - // memcpy(stream, sbuf + pos_read, read_cnt); + memcpy(stream, sbuf + pos_read, read_cnt); } pos_read += read_cnt; pos_read %= CONFIG_SB_SIZE;