Change-Id: I9afe4cefa9b7825f1e721f7b3d1f342db4746bf6
Signed-off-by: stom.hwang <stom.hwang@samsung.com>
snprintf(path, 256, "%s/%s.xml", STT_ENGINE_INFO, pkgid);
if (0 == access(path, F_OK)) {
LOGD("Remove engine info xml(%s)", path);
- remove(path);
+ if (0 != remove(path)) {
+ LOGE("[ERROR] Fail to emove engine info xml(%s)", path);
+ }
}
LOGD("===");
return 0;
if (0 == count)
rms = 0.0;
else
- rms = sqrt(square_sum/count);
+ rms = sqrt((double)square_sum/count);
if (depthByte == 2)
db = 20 * log10(rms/MAX_AMPLITUDE_MEAN_16);