You would define the start of your function like this
Your call in main would beCode:void paFunc(const float* in, float* out, long frames, void* data){ auto start = high_resolution_clock::now(); paConfig *config = reinterpret_cast<paConfig*>(data); // now use config->channels int num_channel = 2; // now use config->margin int margin = 6;
Code:Pa a(paFunc, channels, 1, sample_rate, frames, &config);