Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / common_audio / vad / webrtc_vad.c
index 3acd3c3..8a9b931 100644 (file)
@@ -44,14 +44,8 @@ int WebRtcVad_Create(VadInst** handle) {
   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.
@@ -74,7 +68,7 @@ int WebRtcVad_set_mode(VadInst* handle, int mode) {
   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;