SoundCard
SoundCard copied to clipboard
import hanging indefinitely if pulseaudio daemon is down
The issue lies in this code
If I
import soundcard as sc
and pulseaudio is not running, it will hang indefinitely while importing because of the the while loop. It might not be a bad idea to specify a maximum timeout and throw an exception if pulseaudio is unavailable.
Good idea! Would you like to contribute a pull request?