In Unity, there is only one AudioListener
allowed per scene. This means that I can only sequentially play one audio source at a time and record its stereo and mixing effects, which is very inefficient. Is there any way to record multiple sounds in parallel without interference between them?
This is not possible out of the box, but you could leverage OnAudioFilterRead
to send samples to an encoder, but you will need to hook to an external library for this. At first glance, NAudio or FFmpeg.AutoGen look like good candidates for desktop platforms.