In a simple deployment, the recorder is deployed on the same instance as the engine and engine core. Thus, the components have to share the audio devices. Here, a combined, virtual composite audio device is to be configured via ALSA. If the recorder is deployed on an independent instance, an ALSA device can be accessed directly.
This seems like a possible solution which is using the snd-aloop module.
Another option would be to use Dsnoop.
dsnoop is the equivalent of the dmix plugin, but for recording sound. The dsnoop plugin allows several applications to record from the same device simultaneously.
The problem goes hand in hand with the decision not to create our own pcm device by default, but to use the dsnoop devices provided by alsa.
If we find out later that we need this functionality after all, this issue can be opened again. If not and the dsnoop devices from alsa are sufficient, the code should then be refactored and this functionality completely removed.