Bug fixed in separation module
authorFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Fri, 20 Oct 2017 17:40:03 +0000 (13:40 -0400)
committerFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Fri, 20 Oct 2017 17:40:03 +0000 (13:40 -0400)
src/module/mod_sss.c

index 094bf020c7f7216f854e175909fd3ffee02f52f0..58956043141c789d3a8dd9a854f3c7cdc6a73d72 100644 (file)
 
     int mod_sss_process_mspf(mod_sss_obj * obj) {
 
-        // Empty
+        int rtnValue;
+
+        if (msg_spectra_isZero(obj->in1) != msg_tracks_isZero(obj->in2)) {
+
+            printf("Time stamp mismatch.\n");
+            exit(EXIT_FAILURE);
+
+        }
+
+        if (msg_spectra_isZero(obj->in1) == 0) {
+
+            rtnValue = 0;
+
+        }
+        else {
+
+            rtnValue = -1;
+
+        }
+
+        return rtnValue;  
 
     }