Mercurial > hg > aimc
diff trunk/src/Modules/Output/FileOutputHTK.cc @ 289:6cf55200a199
-Added basic support for unit tests using gtest
-Updated lint scripts to exclude header guard problems
-Made everything lint-friendly
-Added a trivial script to build the Doxygen documentation
author | tomwalters |
---|---|
date | Sat, 20 Feb 2010 21:03:57 +0000 |
parents | e55d0c225a57 |
children | 10d0803e37ec |
line wrap: on
line diff
--- a/trunk/src/Modules/Output/FileOutputHTK.cc Sat Feb 20 17:56:40 2010 +0000 +++ b/trunk/src/Modules/Output/FileOutputHTK.cc Sat Feb 20 21:03:57 2010 +0000 @@ -47,7 +47,6 @@ file_handle_ = NULL; header_written_ = false; - filename_[0] = '\0'; frame_period_ms_ = 0.0f; } @@ -67,7 +66,6 @@ LOG_ERROR(_T("Couldn't open output file '%s' for writing."), filename); return false; } - strcpy(filename_, filename); sample_count_ = 0; frame_period_ms_ = frame_period_ms; header_written_ = false; @@ -115,7 +113,7 @@ int32_t sample_count = 0; int32_t sample_period = floor(1e4 * period_ms); - int16_t sample_size = num_elements * sizeof(float); + int16_t sample_size = num_elements * sizeof(float); // NOLINT // User-defined coefficients with energy term int16_t parameter_kind = H_USER + H_E;