getAudioDevices

getAudioDevices#

csoundengine.csoundlib.getAudioDevices(backend='')[source]#

Returns (indevices, outdevices), where each of these lists is an AudioDevice.

Parameters:

backend – specify a backend supported by your installation of csound. None to use a default for you OS

Return type:

tuple[list[AudioDevice], list[AudioDevice]]

Returns:

a tuple of (input devices, output devices)

Note

For jack an audio device is a client

Each returned device is an AudioDevice instance with attributes:

  • index: The device index

  • label: adc{index} for input devices, dac{index} for output devices.

    The label can be passed to csound directly with either the -i or the -o flag (-i{label} or -o{label})

  • name: A description of the device

  • ins: number of input channels

  • outs: number of output channels

Backend

OSX

Linux

Win

Multiple-Devices

Description

jack

x

x

Jack

auhal

x

x

CoreAudio

pa_cb

x

x

x

x

PortAudio (Callback)

pa_bl

x

x

x

x

PortAudio (blocking)