get_sound_device

get_sound_device() SoundDevice | NullSoundDevice[source]

Factory function to initialize the SoundDevice.

Returns:

An initialized SoundDevice or base class if disabled/failed.

Return type:

SoundDeviceBase