SpeechVMRecorder::SpeechVMRecorder() { mStarting = false; mDumpFile = NULL; memset((void *)&mRingBuf, 0, sizeof(RingBuf)); int ret = 0; ret = pthread_mutex_init(&mMutex, NULL); if (ret != 0) { ALOGE("Failed to initialize mMutex!"); } ret = pthread_cond_init(&mExitCond, NULL); if (ret != 0) { ALOGE("Failed to initialize mExitCond!"); } AUDIO_CUSTOM_PARAM_STRUCT eSphParamNB; GetNBSpeechParamFromNVRam(&eSphParamNB); mAutoVM = eSphParamNB.uAutoVM; m_CtmDebug_Started = false; pCtmDumpFileUlIn = NULL; pCtmDumpFileDlIn = NULL; pCtmDumpFileUlOut = NULL; pCtmDumpFileDlOut = NULL; }
SpeechVMRecorder::SpeechVMRecorder() { mStarting = false; mEnable = false; mDumpFile = NULL; memset((void *)&mRingBuf, 0, sizeof(RingBuf)); AUDIO_CUSTOM_PARAM_STRUCT eSphParamNB; GetNBSpeechParamFromNVRam(&eSphParamNB); mAutoVM = eSphParamNB.uAutoVM; m_CtmDebug_Started = false; pCtmDumpFileUlIn = NULL; pCtmDumpFileDlIn = NULL; pCtmDumpFileUlOut = NULL; pCtmDumpFileDlOut = NULL; }