fluidsynth and pulseaudio with xrdp sink #1004
-
I have a VM, it has pulseaudio with xrdp and xrdp sink configured. Sound works fine in this setup through RDP. Now I'm trying to play a midi file, but I'm missing something in configuration. Here is what I've tried:
There is no fluid output in aconnect:
But it's visible to pulseaudio:
How can I feed a midi file to fluidsynth here? aplaymidi requires a port from aconnect -l output, but as we can see it's not there. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
Fluidsynth actually tells you why there is no ALSA MIDI port:
It seems your user doesn't have the required permissions to open |
Beta Was this translation helpful? Give feedback.
-
Oh you're right, it's not a physical device, adding user into audio group resolved the issue, thanks! pulseaudio constantly performs:
Meanwhile fluidsynth is locked in:
Somehow fluidsynth is causing that, because when fluidsynth process is not running, pulseaudio consumes nothing. |
Beta Was this translation helpful? Give feedback.
-
It's really much higher than expected. E.g. when fluidsynth is not running and there is a non-midi source producing sounds pulseaudio uses about 2% of CPU (with spikes to 3%) on the same xrdp-sink and networking stack. I'll try to debug more. |
Beta Was this translation helpful? Give feedback.
-
Here are some collected metrics (
|
Beta Was this translation helpful? Give feedback.
-
Looks like |
Beta Was this translation helpful? Give feedback.
-
Thanks, -z8192 alone reduced CPU usage by fluidsynth down to 1.3%... Now everything looks awesome! |
Beta Was this translation helpful? Give feedback.
Fluidsynth actually tells you why there is no ALSA MIDI port:
It seems your user doesn't have the required permissions to open
/dev/snd/seq
. On some distros you need to be in theaudio
group to be able to do that.