generated from rust-vmm/crate-template
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sound: add latency_bytes field to IOMessage
The latency field specifies how long it will take until the device finishes playing the I/O message's buffers. Since the I/O message is dropped as soon as the last bytes are copied over to the host's internal buffers, assume the message is dropped almost after the host has started playing this buffer. This solves the issue of a guest app exiting before the host has done playing audio because it kept sending new buffers as fast as possible without waiting (latency). Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters