> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 14:39:13 up 4 days,  9:44,  1 user,  load average: 0.92, 0.83, 0.76
This commit is contained in:
tracer-ics2023
2024-09-21 14:39:13 +08:00
committed by zzy
parent e2ac251cc0
commit 5de13ed33e

View File

@ -40,9 +40,9 @@ void __am_audio_play(AM_AUDIO_PLAY_T *ctl) {
i--;
continue;
} else {
outb(AUDIO_SBUF_ADDR + audio_write, ((uint8_t*)ctl->buf.start)[i]);
audio_write = (audio_write + 1) % audio_sbuf_size;
outl(AUDIO_COUNT_ADDR, inl(AUDIO_COUNT_ADDR) + 1);
}
outb(AUDIO_SBUF_ADDR + audio_write, ((uint8_t*)ctl->buf.start)[i]);
audio_write = (audio_write + 1) % audio_sbuf_size;
}
}