You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RETURN_EXCEPTION("Can't access the Mirics SDR dongle. Make sure it is properly plugged in, drivers are installed and the mir_sdr_api.dll is in the executable's folder and try again. Please, refer to the TSDRPlugin_Miricis readme file for more information.", TSDR_CANNOT_OPEN_DEVICE);
if (inited&&mir_sdr_Uninit() !=0) RETURN_EXCEPTION("Cannot properly close the Mirics USB dongle. If you experience any further issues, please disconnect it and reconnect it again.", TSDR_CANNOT_OPEN_DEVICE);
if (fname==NULL) returnTSDR_PLUGIN_PARAMETERS_WRONG;
146
+
if (fname==NULL) RETURN_EXCEPTION("File name was not specified. Commands should be: filename samplerate sampleformat. Format could be float, int8, uint8, int16 or uint16.", TSDR_PLUGIN_PARAMETERS_WRONG);
119
147
char*samplerate_s=nexttoken(NULL);
120
-
if (samplerate_s==NULL) returnTSDR_SAMPLE_RATE_WRONG;
148
+
if (samplerate_s==NULL) RETURN_EXCEPTION("Sample rate was not specified. Commands should be: filename samplerate sampleformat. Format could be float, int8, uint8, int16 or uint16.", TSDR_PLUGIN_PARAMETERS_WRONG);
121
149
longsamplerate_l=atol(samplerate_s);
122
-
if (samplerate_l>MAX_SAMP_RATE||samplerate_l <= 0) returnTSDR_SAMPLE_RATE_WRONG;
150
+
if (samplerate_l>MAX_SAMP_RATE||samplerate_l <= 0) RETURN_EXCEPTION("Samplerate is invalid. Please specify the samplerate the original recording was done with.", TSDR_PLUGIN_PARAMETERS_WRONG);
123
151
char*type_s=nexttoken(NULL);
124
-
if (type_s==NULL) returnTSDR_PLUGIN_PARAMETERS_WRONG;
152
+
if (type_s==NULL) RETURN_EXCEPTION("Sample type is not specified. Pick one between float, int8, uint8, int16 or uint16.", TSDR_PLUGIN_PARAMETERS_WRONG);
125
153
126
154
if (str_eq(type_s,"float")) {
127
155
type=TYPE_FLOAT;
@@ -139,12 +167,12 @@ int tsdrplugin_setParams(const char * params) {
139
167
type=TYPE_USHORT;
140
168
sizepersample=2;
141
169
} else
142
-
returnTSDR_PLUGIN_PARAMETERS_WRONG;
170
+
RETURN_EXCEPTION("Sample type is invalid. Pick one between float, int8, uint8, int16 or uint16.", TSDR_PLUGIN_PARAMETERS_WRONG);
0 commit comments