getAudioBackendNames

getAudioBackendNames#

csoundengine.csoundlib.getAudioBackendNames(available=False, platform='')[source]#

Returns a list with the names of the audio backends for a given platform

Parameters:
  • available – if True, return the names for only those backends which are currently available

  • platform – if given, return only names for those backends present in the given platform

Return type:

list[str]

Returns:

a list with the names of all available backends for the given platform

Example

>>> from csoundengine.csoundlib import *
>>> getAudioBackendNames()   # in Linux
['jack', 'pa_cb', 'pa_bl', 'alsa', 'pulse']
>>> getAudioBackendNames(platform='macos')
['pa_cb', 'pa_bl', 'auhal']
# In linux with pulseaudio disabled
>>> getAudioBackendNames(available=True)
['jack', 'pa_cb', 'pa_bl', 'alsa']