Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_legacy_melbank_input_source(ledfx):
global _legacy_melbank_source
if _legacy_melbank_source is None:
_legacy_melbank_source = LegacyMelbankInputSource(ledfx, ledfx.config.get('audio', {}))
return _legacy_melbank_source