You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to PortAudio for cross-platform and cross backend compatibility.
Linux v6.7 propose a solution to resolve sound stutter effect.
Therefore, upgrade the kernel version as well.
It is confirmed that there exists unknown issues in Linux Kernel
that user has to adjust the buffer size to more than four times of period size,
or the program cannot write PCM frames into guest ALSA stack.
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,12 @@ A minimalist RISC-V system emulator capable of running Linux the kernel and corr
12
12
- Three types of I/O support using VirtIO standard:
13
13
- virtio-blk acquires disk image from the host.
14
14
- virtio-net is mapped as TAP interface.
15
-
- virtio-snd uses ALSA for sound operation with the following limitations:
16
-
- The emulator will hang if PulseAudio is enabled on host.
17
-
- The playback may plays with repeating artifact.
15
+
- virtio-snd uses [PortAudio](https://github.com/PortAudio/portaudio) for sound playback on the host with one limitations:
16
+
- As some unknown issues in guest Linux OS (confirmed in v6.7 and v6.12), you need
17
+
to adjust the buffer size to more than four times of period size, or
18
+
the program cannot write the PCM frames into guest OS ALSA stack.
19
+
- For instance, the following buffer/period size settings on `aplay` has been tested
20
+
with broken and stutter effects yet complete with no any errors: `aplay --buffer-size=32768 --period-size=4096 /usr/share/sounds/alsa/Front_Center.wav`.
0 commit comments