Fix Testcase

Add commented implementation of new detector (need to decide)
This commit is contained in:
Flamefire committed 2014-03-25 18:41:25 +01:00
1 parent 94c7f68688
commit e54892391f
3 files changed
+38 -9

No files matched your search

+9
View File
@@ -27,6 +27,15 @@ namespace Native{
freeFloatArray(dataFloat);
}
void CAnalyzer::Input(array<Byte>^ data){
if(data->Length == 0)
return;
pin_ptr<Byte> dataPtr = &data[0];
float* dataFloat = short2FloatArray(static_cast<short*>(static_cast<void*>(dataPtr)), data->Length);
m_analyzer->input(dataFloat, dataFloat + data->Length);
freeFloatArray(dataFloat);
}
void CAnalyzer::Process(){
m_analyzer->process();
}