Skip to content

Commit b6fd16f

Browse files
Dorinda Basseystefano-garzarella
authored andcommitted
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 <[email protected]>
1 parent 0c8c287 commit b6fd16f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

vhost-device-sound/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
### Fixed
1414
- [[#808]](https://github.com/rust-vmm/vhost-device/pull/808) pipewire: Fix rand module imports
15+
- [[#884]](https://github.com/rust-vmm/vhost-device/pull/884) vhost-device-sound/pipewire: fix wrong format
1516

1617
### Deprecated
1718

vhost-device-sound/src/audio_backends/pipewire.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl AudioBackend for PwBackend {
319319
};
320320

321321
let mut audio_info = AudioInfoRaw::new();
322-
audio_info.set_format(AudioFormat::S16LE);
322+
audio_info.set_format(AudioFormat(info.format));
323323
audio_info.set_rate(info.rate);
324324
audio_info.set_channels(info.channels);
325325
audio_info.set_position(pos);

0 commit comments

Comments
 (0)