Mixing porting to another base distribution (which is a very complex topic) on which Whonix is based on with “Switching to ALSA” (which looks comparatively a lot easier) is too much off-topic for this forum topic. Please create a new forum thread for that if needed.
As for porting to another base distribution and (Hardened) Gentoo, see also the following development notes:
This seems cool at first sight. Quote:
PulseAudio emulation for ALSA
The program provides an alternative partial implementation of the PulseAudio API. It consists of a loader script and a number of shared libraries with the same names as from original PulseAudio, so applications could dynamically load them and think they are talking to PulseAudio. Internally, no separate sound mixing daemon is used. Instead, apulse relies on ALSA’s dmix, dsnoop, and plug plugins to handle multiple sound sources and capture streams running at the same time. dmix plugin muxes multiple playback streams; dsnoop plugin allow multiple applications to capture from a single microphone; and plug plugin transparently converts audio between various sample formats, sample rates and channel numbers.
What do you think?
This might help with getting Tor Browser to work with ALSA (without recompilation)? (That is, if Tor Browser currently has a hard dependency on PulseAudio for sound which I am not sure yet.)
We don’t have human resources for that either.
Nobody managed to create one yet even though a very popular request:
Tor Browser Update: Technical Details
Alright. Some issues mentioned on that link (such as
Snoop on other application's audio or
Have unmediated access to the microphone) may still be issues with ALSA?
However, I can see the general attack surface reduction argument.
Load and unload server modules, including network ones
- Porting from PulseAudio to ALSA is worthwhile. Help welcome. Let me know which packages to remove/add and/or send pull request for anon-meta-packages.
- Maybe apulse can help.
- We need audio support in Tor Browser.
- EDIT: maybe possible thanks to
- VLC is not important enough for installation by default if it was in theory an obstacle for porting from PulseAudio to ALSA.
- Porting from PulseAudio to ALSA is however is not a blocker for System-wide sandboxing framework - sandbox-app-launcher.