Capture Audio when application not in focus

i am developing an audio-visual application which does a lot of audio reactive stuff. i noticed that the capturing of audio is stopped as soon as the application looses focus (on windows that is).

this is quite a problem for my project because the application is usually used in conjunction with other applications. usually going back and forth between them. every time i switch, all audio reactivnes is stopped until i go back to the application again.

does anybody know a solution to this? or where i could modify the source?

thanks in advance

I haven’t tested this personally, but have you tried changing the background play-rate?
Edit > Editor Preferences > General > Performance > Use Less CPU when in Background

Alternatively you can try:
Edit > Editor Preferences > Level Editor > Miscellaneous > Sound > Allow Background Audio
bild

tried already and does not solve the issue.

use less cpu: reduces framerate drastically when in backround
allow background audio: is only for audio playback, not capturing

also, since it is in editor preferences, i guess this is not for the runtime build.