Thanks to @Hiero32 who contributed this module.
This module allows xrdp to generate sound on a pipewire-based system.
Pipewire versions 0.3.58 and later are supported.
# Install build environment
sudo apt install git pkg-config autotools-dev libtool make gcc
# Install dependencies
sudo apt install libpipewire-0.3-dev libspa-0.2-dev
# Install build environment
sudo dnf install git gcc make autoconf libtool automake pkgconfig
# Install dependencies
sudo dnf install pipewire-devel
./bootstrap
./configure
make
# Install
sudo make install