audioBackends#
- csoundengine.csoundlib.audioBackends(available=False, platform='')[source]#
Return a list of audio backends for the given platform
- Parameters:
available – if True, only available backends are returned. This is only possible if querying backends for the current platform
platform – defaults to the current platform. Possible values: ‘linux’, ‘macos’, ‘windows’, but also any value returned by sys.platform
- Return type:
list
[AudioBackend
]- Returns:
a list of AudioBackend
If available is True, only those backends supported for the current platform and currently available are returned. For example, jack will not be returned in linux if the jack server is not running.
Example
>>> from csoundengine import * >>> [backend.name for backend in audioBackends(available=True)] ['jack', 'pa_cb', 'pa_bl', 'alsa']