Method: WebRTC::Vad.valid_rate_and_frame_length?
- Defined in:
- ext/webrtcvad/webrtcvad.c
.valid_rate_and_frame_length?(rb_rate, rb_frame_len) ⇒ Boolean
65 66 67 68 69 70 71 72 73 74 75 |
# File 'ext/webrtcvad/webrtcvad.c', line 65 static VALUE rb_valid_rate_and_frame_length(VALUE self, VALUE rb_rate, VALUE rb_frame_len) { int rate, frame_length; rate = NUM2INT(rb_rate); frame_length = NUM2INT(rb_frame_len); if (WebRtcVad_ValidRateAndFrameLength(rate, frame_length)) { return Qfalse; } else { return Qtrue; } } |