Fix Testcase
Add commented implementation of new detector (need to decide)
This commit is contained in:
1 parent
94c7f68688
commit
e54892391f
3 files changed
+38
-9
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user