summaryrefslogtreecommitdiff
path: root/src/refout.h
blob: b12e4047ca596c76847cc985f7b1dcb1074b80f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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)
  {}
};