audio loopback create a new recording device and those kind of devices can be easily managed with the Java Audio API. I need to understand what is the better option... there is lot of things to study :) Thank you Neil for the hint! Bye Davide
On Windows audio loopback is as simple as enabling it via the GUI, but how to enable it via a Java program?

Did you mean WASAPI has a direct Java binding? In Jitsi?
ALSA is very unlikely to be bypassed - it's the common backend of the other APIs in most cases.
Actually you only sort-of wrong that ALSA may be bypassed.
From https://linuxhint.com/guide_linux_audio/, I gather the following information:
You’re probably better off asking a forum that specializes in sound on Linux, and how distributions handle the confusions.
From: jna-...@googlegroups.com <jna-...@googlegroups.com>
On Behalf Of Tres Finocchiaro
Sent: Mittwoch, 12. Mai 2021 19:27
To: jna-...@googlegroups.com
Subject: [External Sender] Re: Get audio from the soundcard
On Windows audio loopback is as simple as enabling it via the GUI, but how to enable it via a Java program?
Right, and Audacity has access to this without visiting the control panel. See attached screenshot:

Note, I use this configuration on several machines (virtual and physical) as well as x86_64 and ARM64, this seems to be the winner for monitoring output on Windows.
Did you mean WASAPI has a direct Java binding? In Jitsi?
Yes, I believe so see here: https://github.com/jitsi/libjitsi/blob/master/src/org/jitsi/impl/neomedia/jmfext/media/protocol/wasapi/WASAPI.java
ALSA is very unlikely to be bypassed - it's the common backend of the other APIs in most cases.
Thank you for this information, I was under the impression that several back-ends had direct hardware access and bypassed ALSA altogether, sorry if this information was inaccurate or misleading.
--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jna-users+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jna-users/CANQs7dDCGE%2B3WYT-UwvxtJfDppEwMwSYZwmTjNuDXc1_UT2Avg%40mail.gmail.com.
Sensitivity: C2 Internal
The content of this e-mail is intended only for the
confidential use of the person addressed.
If you are not the intended
recipient, please notify the sender and delete this e-mail immediately.
Thank
you.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/AM5PR0102MB272333B3D65205B84BD14139B9529%40AM5PR0102MB2723.eurprd01.prod.exchangelabs.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/816518d4-c425-f9f2-ce74-a1748b1f9120%40dpsoftware.org.
It seems that stereo mix is not available on some devices for a strange agreement between manufacturers and Microsoft.
Windows offers WASAPI, which has bindings available and is capable of monitoring the playback device (try it out in Audacity!)
...
Note, I use this configuration on several machines (virtual and physical) as well as x86_64 and ARM64, this seems to be the winner for monitoring output on Windows.
...
Right, and Audacity has access to this without visiting the control panel. See attached screenshot:
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/b8cff9cb-40d6-6ab1-e3cd-d37371148cb9%40dpsoftware.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/CANQs7dA7ba3L_Gst0178H0XnMcZvfFzxxCL%2BR7McwuK-p2dgDA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/013d0990-1683-f59f-e349-532ffdef7046%40dpsoftware.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/ef369df6-8948-3b9b-0b7c-4052c045ba35%40dpsoftware.org.