Fangjun Kuang
Committed by GitHub

Fix compile errors for Linux (#2378)

This PR fixes a Linux build error by removing the non-portable std::logf call and using the C logf function instead.

- Replace std::logf with logf in TenVadModel::Impl::LogMel to compile on Linux.
... ... @@ -321,7 +321,7 @@ class TenVadModel::Impl {
static void LogMel(const float *in, int32_t n, float *out) {
for (int32_t i = 0; i != n; ++i) {
// 20.79441541679836 is log(32768*32768)
out[i] = std::logf(in[i] + 1e-10) - 20.79441541679836f;
out[i] = logf(in[i] + 1e-10) - 20.79441541679836f;
}
}
... ...