summaryrefslogtreecommitdiff
path: root/tnet_io/cwrapper.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-03 23:00:30 +0800
committerDeterminant <[email protected]>2015-06-03 23:00:30 +0800
commita753eca0121ac3ec81ed76bd719d3f1cb9522680 (patch)
tree9777fdddf5d0404964353a0b3d2821e514f6eeb3 /tnet_io/cwrapper.cpp
parent38962683e518dcbebc0cfa6c0c9c9616b25d5bd1 (diff)
...
Diffstat (limited to 'tnet_io/cwrapper.cpp')
-rw-r--r--tnet_io/cwrapper.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tnet_io/cwrapper.cpp b/tnet_io/cwrapper.cpp
index e82f3f8..4149557 100644
--- a/tnet_io/cwrapper.cpp
+++ b/tnet_io/cwrapper.cpp
@@ -2,13 +2,13 @@
#include "KaldiLib/Labels.h"
#include "KaldiLib/Common.h"
#include "KaldiLib/UserInterface.h"
-#include "../../common.h"
#include <string>
#define SNAME "TNET"
extern "C" {
#include "cwrapper.h"
#include "string.h"
+#include "../../common.h"
extern Matrix *nerv_matrix_host_float_new_(lua_State *L, long nrow, long ncol);
@@ -77,6 +77,10 @@ extern "C" {
repo->feature_repo.MoveNext();
}
+ int tnet_feature_repo_is_end(TNetFeatureRepo *repo) {
+ return repo->feature_repo.EndOfList();
+ }
+
size_t tnet_feature_repo_current_samplerate(TNetFeatureRepo *repo) {
return repo->feature_repo.CurrentHeader().mSamplePeriod;
}