Go to the source code of this file.
Define Documentation
| #define PSYNTH_DECLARE_NODE_FACTORY |
( |
|
T, |
|
|
|
name |
|
) |
| |
Value:class T ## _factory : public ::psynth::graph::node_factory \
{ \
public: \
psynth::graph::node* create (const audio_info& info) \
{ \
return new T (info); \
} \
\
void destroy (psynth::graph::node* obj) \
{ \
delete obj; \
} \
const char* get_name () { \
return name; \
} \
}; \
T ## _factory& get_ ## T ## _factory();
| #define PSYNTH_DEFINE_NODE_FACTORY |
( |
|
T | ) |
|
Value:T ## _factory& get_ ## T ## _factory ()\
{\
static T ## _factory s_factory;\
return s_factory;\
}