Method: Wiretap::NodeFrames#length=
- Defined in:
- ext/nodeframes.cpp
#length=(value) ⇒ Object
Set frames count in clip
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'ext/nodeframes.cpp', line 22 static VALUE wiretap_node_frames_set_count(VALUE self, VALUE value) { VALUE count = rb_funcall(value, rb_intern("to_i"), 0); WireTapNodeHandle* node; Data_Get_Struct(self, WireTapNodeHandle, node); int prev_count; NODERUN_E(node, node->getNumFrames(prev_count)); if((prev_count != 0) && (prev_count != NUM2INT(count))) { rb_raise(eError, "Cannot reallocate the frames after the frame length has been set", __FILE__, __LINE__); } NODERUN_E(node, node->setNumFrames(NUM2INT(count))); return count; } |