From dc54e54489bbe4d6aeb61fecd7d0a47d655d85bc Mon Sep 17 00:00:00 2001 From: tracer-ics2023 Date: Sat, 21 Sep 2024 14:19:20 +0800 Subject: [PATCH] =?UTF-8?q?>=20=20compile=20NEMU=20221220000=20=E5=BC=A0?= =?UTF-8?q?=E4=B8=89=20Linux=20zzy=205.15.146.1-microsoft-standard-WSL2=20?= =?UTF-8?q?#1=20SMP=20Thu=20Jan=2011=2004:09:03=20UTC=202024=20x86=5F64=20?= =?UTF-8?q?x86=5F64=20x86=5F64=20GNU/Linux=20=2014:19:19=20up=204=20days,?= =?UTF-8?q?=20=209:24,=20=201=20user,=20=20load=20average:=200.71,=200.81,?= =?UTF-8?q?=200.62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/src/device/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;