#include "lockin.h" class ref_arg { public: double ival; alsa_pcm* pcm; int pipefd; ref_arg(const double _ival, alsa_pcm* const _pcm, const int _pipefd) : ival(_ival), pcm(_pcm), pipefd(_pipefd) {} }; void* refout(void* arg); // for communication with krunch: class ref_to_krunch{ public: int period; // sequence number int cpkp; // cycles in this krunch period int fpkp; // frames in this krunch period // trivial constructor: ref_to_krunch(){} // nontrivial constructor: ref_to_krunch(const int _period, const int _cpkp, const int _fpkp) : period(_period), cpkp(_cpkp), fpkp(_fpkp) {} };