mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-10 07:12:12 +00:00
vhost-device-sound/pipewire: fix wrong format
after pipewire update fix the hardcoded audio format to use the audio format in the new release Fixes: #856 Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
This commit is contained in:
parent
0c8c287ad0
commit
b6fd16f949
@ -12,6 +12,7 @@
|
||||
|
||||
### Fixed
|
||||
- [[#808]](https://github.com/rust-vmm/vhost-device/pull/808) pipewire: Fix rand module imports
|
||||
- [[#884]](https://github.com/rust-vmm/vhost-device/pull/884) vhost-device-sound/pipewire: fix wrong format
|
||||
|
||||
### Deprecated
|
||||
|
||||
|
||||
@ -319,7 +319,7 @@ impl AudioBackend for PwBackend {
|
||||
};
|
||||
|
||||
let mut audio_info = AudioInfoRaw::new();
|
||||
audio_info.set_format(AudioFormat::S16LE);
|
||||
audio_info.set_format(AudioFormat(info.format));
|
||||
audio_info.set_rate(info.rate);
|
||||
audio_info.set_channels(info.channels);
|
||||
audio_info.set_position(pos);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user