cysounddevice.streams module

Stream class

StreamInfo class

StreamCallback class

C-API

CallbackUserData

Container for data used in _stream_callback()

int input_channels

Number of input channels

int output_channels

Number of output channels

SampleBuffer* in_buffer

Pointer to a SampleBuffer to write input data to

SampleBuffer* out_buffer

Pointer to a SampleBuffer to read output data from

int _stream_callback(const void* in_bfr, void* out_bfr, unsigned long frame_count, const PaStreamCallbackTimeInfo* time_info, PaStreamCallbackFlags status_flags, void* user_data)

Callback function that reads and writes input/output data using the SampleBuffer pointers stored in user_data as CallbackUserData