Debian Codegraph @

embedded/openframeworks/PyoClass.h

raw
1 #pragma once
2
3 #include "m_pyo.h"
4
5 typedef int callPtr(int);
6
7 class Pyo {
8 public:
9 ~Pyo();
10 void setup(int nChannels, int bufferSize, int sampleRate);
11 void process(float *buffer);
12 void fillin(float *buffer);
13 void clear();
14 int loadfile(const char *file, int add);
15 int exec(const char *msg);
16 int value(const char *name, float value);
17 int value(const char *name, float *value, int len);
18 int set(const char *name, float value);
19 int set(const char *name, float *value, int len);
20
21 private:
22 int nChannels;
23 int bufferSize;
24 int sampleRate;
25 PyThreadState *interpreter;
26 float *pyoInBuffer;
27 float *pyoOutBuffer;
28 callPtr *pyoCallback;
29 int pyoId;
30 char pyoMsg[262144];
31 };