blob: ed1fb27d106e928fe1b2d9ad45fc4bcd30b1438d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#ifndef __DRUMGIZMO_AUDIOINPUTENGINEDL_H__
#define __DRUMGIZMO_AUDIOINPUTENGINEDL_H__
#include "audioinputengine.h"
#include "jackclient.h"
typedef void* (*input_create_func_t)(void);
typedef void (*input_destroy_func_t)(void*);
typedef bool (*input_init_func_t)(void*,int,char**);
typedef void (*input_setparm_func_t)(void*,const char*,const char*);
typedef bool (*input_start_func_t)(void*);
typedef void (*input_stop_func_t)(void*);
typedef void (*input_pre_func_t)(void*);
typedef event_t* (*input_run_func_t)(void*,size_t,size_t,size_t*);
typedef void (*input_post_func_t)(void*);
class AudioInputEngineDL : public AudioInputEngine {
public:
AudioInputEngineDL(std::string name);
~AudioInputEngineDL();
bool init(Instruments &instruments);
void setParm(std::string parm, std::string value);
bool start();
void stop();
void pre();
event_t *run(size_t pos, size_t len, size_t *nevents);
void post();
private:
void *ptr;
input_create_func_t i_create;
input_destroy_func_t i_destroy;
input_init_func_t i_init;
input_setparm_func_t i_setparm;
input_start_func_t i_start;
input_stop_func_t i_stop;
input_pre_func_t i_pre;
input_run_func_t i_run;
input_post_func_t i_post;
bool is_jack_plugin;
JackClient *jackclient;
};
#endif
|