vhost-device-sound

Crates.iovhost-device-sound
lib.rsvhost-device-sound
version0.2.0
sourcesrc
created_at2024-02-07 13:58:27.346892
updated_at2024-07-18 06:35:11.066499
descriptionA virtio-sound device using the vhost-user protocol.
homepage
repositoryhttps://github.com/rust-vmm/vhost-device
max_upload_size
id1130531
size230,192
Viresh Kumar (vireshk)

documentation

README

vhost-device-sound

Synopsis

   vhost-device-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-device-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

Commit count: 1137

cargo fmt