Compiling went Ok but when ran under MacOS (Monterey) the program when opening the devices with PortAudio (error 9986).
Researching the problem it seems to be related to an authorization problem required by all Mac OS after Big Sur which, apparently, it's fixed by adding some parameters to the portaudio call.
As it is the program isn't usable, after the error become unresponsive until terminated.
Regards, Pedro.