return 0;
}
-int WebRtcVad_Free(VadInst* handle) {
- if (handle == NULL) {
- return -1;
- }
-
+void WebRtcVad_Free(VadInst* handle) {
free(handle);
-
- return 0;
}
// TODO(bjornv): Move WebRtcVad_InitCore() code here.
return WebRtcVad_set_mode_core(self, mode);
}
-int WebRtcVad_Process(VadInst* handle, int fs, int16_t* audio_frame,
+int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame,
int frame_length) {
int vad = -1;
VadInstT* self = (VadInstT*) handle;