get_sound_device

get_sound_device() SoundDevice | NullSoundDevice[source]

Factory function to initialize the SoundDevice.

Returns:

An initialized SoundDevice or NullSoundDevice if disabled or initialization fails.

Return type:

SoundDevice | NullSoundDevice