From 9852b855db2a65ea6eb5e877411634820214ddf0 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sat, 16 Mar 2024 11:21:23 -0700 Subject: initial setup --- src/krunch.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/krunch.h (limited to 'src/krunch.h') diff --git a/src/krunch.h b/src/krunch.h new file mode 100644 index 0000000..f24413b --- /dev/null +++ b/src/krunch.h @@ -0,0 +1,24 @@ +#ifndef KRUNCH__H +#define KRUNCH__H + +#include "gui_class.h" +#include "lockin.h" + +void* krunch(void* _arg); // thread entry point + +class krunch_arg { +public: + myWindow* topwin; + alsa_pcm* pcm; + alsa_pcm* otherpcm; + snark* setup; + int pipefd; + krunch_arg(myWindow* const _topwin, + alsa_pcm* const _pcm, alsa_pcm* const _otherpcm, + snark* const _setup, const int _pipefd) + : topwin(_topwin), pcm(_pcm), otherpcm(_otherpcm), + setup(_setup), pipefd(_pipefd) + {} +}; + +#endif /* KRUNCH__H */ -- cgit v1.2.3