Diff of /branches/Gxsm-2x3-transition-sig/plug-ins/hard/sranger_mk3_hwi_dev.C [r3526] .. [r3527]  Maximize  Restore

Switch to side-by-side view

--- a/branches/Gxsm-2x3-transition-sig/plug-ins/hard/sranger_mk3_hwi_dev.C
+++ b/branches/Gxsm-2x3-transition-sig/plug-ins/hard/sranger_mk3_hwi_dev.C
@@ -3320,6 +3320,20 @@
 		return "INVALID INDEX";
 }
 
+const gchar *sranger_mk3_hwi_dev::lookup_signal_unit_by_index(int i){
+	if (i<NUM_SIGNALS && i >= 0)
+		return (const gchar*)dsp_signal_lookup_managed[i].unit;
+	else
+		return "INVALID INDEX";
+}
+
+double sranger_mk3_hwi_dev::lookup_signal_scale_by_index(int i){
+	if (i<NUM_SIGNALS && i >= 0)
+		return dsp_signal_lookup_managed[i].scale;
+	else
+		return 0.;
+}
+
 int sranger_mk3_hwi_dev::change_signal_input(int signal_index, gint32 input_id){
 	SIGNAL_MANAGE sm = { input_id, signal_index, 0, 0 }; // for read/write control part of signal_monitor only
 	g_print ("sranger_mk3_hwi_dev::change_module_signal_input\n");
@@ -3357,11 +3371,11 @@
 
 	int signal_index = lookup_signal_by_ptr (sm.act_address_signal);
 
-	std::cout << "QSignal: found Sig " << signal_index
+	std::cout << "Query_Module_Signal[inpid=" << input_id << "]: found Sig " << signal_index
 		  << " *** mindex=" << sm.mindex
-		  << "signal_id=" << sm.signal_id
-		  << "act_address_input_set=" << sm.act_address_input_set
-		  << "act_address_input_set=" << sm.act_address_signal
+		  << ", signal_id=" << sm.signal_id
+		  << ", act_address_input_set=" << sm.act_address_input_set
+		  << ", act_address_input_set=" << sm.act_address_signal
 		  << std::endl;
 
 	return signal_index;