libcw/cwIoFlow.h
kevin 262d2202b0 cwFlow,cwFlowCross,cwIoFlow : Added set_variable_value().
Broke applyPreset() into two parts apply_preset() and begin_cross_fade().
2021-12-25 22:16:00 -05:00

31 lines
1.3 KiB
C++

#ifndef cwIoFlow_h
#define cwIoFlow_h
namespace cw
{
namespace io_flow
{
typedef handle< struct io_flow_str > handle_t;
rc_t create( handle_t& hRef, io::handle_t ioH, double srate, unsigned crossFadeCnt, const object_t& flow_class_dict, const object_t& cfg );
rc_t destroy( handle_t& hRef );
rc_t exec( handle_t h, const io::msg_t& msg );
rc_t apply_preset( handle_t h, flow_cross::destId_t destId, const char* presetLabel );
rc_t set_variable_value( handle_t h, flow_cross::destId_t destId, const char* inst_label, const char* var_label, unsigned chIdx, bool value );
rc_t set_variable_value( handle_t h, flow_cross::destId_t destId, const char* inst_label, const char* var_label, unsigned chIdx, int value );
rc_t set_variable_value( handle_t h, flow_cross::destId_t destId, const char* inst_label, const char* var_label, unsigned chIdx, unsigned value );
rc_t set_variable_value( handle_t h, flow_cross::destId_t destId, const char* inst_label, const char* var_label, unsigned chIdx, float value );
rc_t set_variable_value( handle_t h, flow_cross::destId_t destId, const char* inst_label, const char* var_label, unsigned chIdx, double value );
rc_t begin_cross_fade( handle_t h, unsigned crossFadeMs );
}
}
#endif