playSession

maelzel.core.playback.playSession(numchannels=None, backend=None, outdev=None, verbose=None, buffersize=None, latency=None, numbuffers=None)[source]

Returns the csoundengine Session

If a Session is already present, the active session is returned. In this case, any arguments passed are ignored.

Parameters:
  • numchannels (Optional[int]) – the number of output channels, overrides config ‘play.numChannels’

  • backend (Optional[str]) – the audio backend used, overrides config ‘play.backend’

  • outdev (Optional[str]) – leave as None to use the backend’s default, use ‘?’ to select from a list of available devices. To list all available devices see getAudioDevices()

  • verbose (Optional[bool]) – if True, output debugging information

  • buffersize (Optional[int]) – if given, use this as the buffer size. None to use a sensible default for the backend

  • latency (Optional[float]) – an added latency

Return type:

Session

Returns:

the active Session

See also

csoundengine.Session