vhost-device/crates/sound
Matias Ezequiel Vara Larsen 18eace76f8 cargo fmt
Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
2023-09-20 10:38:06 +02:00
..
src cargo fmt 2023-09-20 10:38:06 +02:00
Cargo.toml Merge pull request #28 from dorindabassey/rebasepw 2023-09-13 10:56:52 +02:00
CHANGELOG.md Add vhost-user-sound crate 2023-08-23 22:12:35 +03:00
LICENSE-APACHE Add vhost-user-sound crate 2023-08-23 22:12:35 +03:00
LICENSE-BSD-3-Clause Add vhost-user-sound crate 2023-08-23 22:12:35 +03:00
README.md sound: cli backend selector 2023-08-31 11:40:40 +02:00
rustfmt.toml Add vhost-user-sound crate 2023-08-23 22:12:35 +03:00

vhost-user-sound

Synopsis

   vhost-user-sound --socket <SOCKET> --backend <BACKEND>

Description

   A virtio-sound device using the vhost-user protocol.

Options

     --socket <SOCKET>
            vhost-user Unix domain socket path

     --backend <BACKEND>
            audio backend to be used [possible values: null, pipewire, alsa]

     -h, --help
            Print help

     -V, --version
            Print version

Examples

Launch the backend on the host machine:

host# vhost-user-sound --socket /tmp/snd.sock --backend null

With QEMU, you can add a virtio device that uses the backend's socket with the following flags:

-chardev socket,id=vsnd,path=/tmp/snd.sock \
-device vhost-user-snd-pci,chardev=vsnd,id=snd

License

This project is licensed under either of