Skip to content

Commit

Permalink
sound/pipewire: specify audio channel position
Browse files Browse the repository at this point in the history
add set_position() callback to specify audio channels position

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
  • Loading branch information
Dorinda Bassey authored and epilys committed Feb 7, 2024
1 parent 2858d65 commit 8995469
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vhost-device-sound/src/audio_backends/pipewire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ impl AudioBackend for PwBackend {
audio_info.set_format(AudioFormat::S16LE);
audio_info.set_rate(info.rate);
audio_info.set_channels(info.channels);
audio_info.set_position(pos);

let values: Vec<u8> = PodSerializer::serialize(
std::io::Cursor::new(Vec::new()),
Expand Down

0 comments on commit 8995469

Please sign in to comment.