summaryrefslogtreecommitdiff
path: root/src/refout.h
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2024-03-16 11:21:23 -0700
committerJohn Denker <jsd@av8n.com>2024-03-16 11:42:15 -0700
commit9852b855db2a65ea6eb5e877411634820214ddf0 (patch)
treec4c4504b34ef81d67891ed137ec2cfaabb4d6d04 /src/refout.h
parent634d365a03cb0581a062cd3cf4db9ae69f1cde26 (diff)
initial setupHEADmaster
Diffstat (limited to 'src/refout.h')
-rw-r--r--src/refout.h32
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)
+ {}
+};