'Is there a way to list all active sound profiles without using pulseaudio?

I know that by using pactl list sinks, we can get all ACTIVE sound sinks. However, because I am running an application inside a docker container. Using pulseaudio inside a container can be troublesome and may cause other problems. Is there an alternative way to get all ACTIVE sound sinks without using pulseaudio?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source