Method: WebRTC::Vad.new

Defined in:
ext/webrtcvad/webrtcvad.c

.new(rb_rage) ⇒ Object



13
14
15
16
17
18
19
20
# File 'ext/webrtcvad/webrtcvad.c', line 13

static VALUE rb_vad_create(VALUE klass, VALUE rb_rage) {
  struct vad_instance* vad;
  VALUE obj = Data_Make_Struct(klass, struct vad_instance, NULL, vad_free, vad);
  VALUE argv[1];
  argv[0] = rb_rage;
  rb_obj_call_init(obj, 1, argv);
  return obj;
}