diff options
Diffstat (limited to 'src/refout.h')
-rw-r--r-- | src/refout.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/refout.h b/src/refout.h new file mode 100644 index 0000000..b12e404 --- /dev/null +++ b/src/refout.h @@ -0,0 +1,32 @@ +#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) + {} +}; |