Lines Matching refs:rc

43   ESR_ReturnCode rc;
59 rc = ESR_OUT_OF_MEMORY;
105 CHK(rc, HashMapCreate(&data->value));
106 CHK(rc, ArrayListCreate(&data->listeners));
111 return rc;
126 ESR_ReturnCode rc;
128 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
138 return rc;
144 ESR_ReturnCode rc;
149 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
158 return rc;
164 ESR_ReturnCode rc;
169 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
178 return rc;
185 ESR_ReturnCode rc;
190 CHKLOG(rc, HashMapGet(data->value, name, (void **)&pair));
199 return rc;
205 ESR_ReturnCode rc;
210 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
219 return rc;
225 ESR_ReturnCode rc;
230 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
239 return rc;
247 ESR_ReturnCode rc;
255 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
270 return rc;
289 ESR_ReturnCode rc;
291 CHKLOG(rc, list->getSize(list, &size));
294 CHKLOG(rc, list->get(list, i, (void **)&listener));
295 CHKLOG(rc, listener->listener->propertyChanged(listener->listener, name, oldValue, newValue, type, listener->data));
299 return rc;
309 ESR_ReturnCode rc;
311 CHKLOG(rc, HashMapContainsKey(data->value, name, &exists));
320 CHKLOG ( rc, ESR_SessionTypeRemoveAndFreePropertyImpl ( self, name ) );
331 CHKLOG(rc, firePropertyChanged(self, name, NULL, value, type));
332 CHKLOG(rc, HashMapPut(data->value, name, pair));
339 return rc;
454 ESR_ReturnCode rc;
456 CHK(rc, self->contains(self, name, &exists));
461 return rc;
468 ESR_ReturnCode rc;
470 CHK(rc, self->contains(self, name, &exists));
475 return rc;
482 ESR_ReturnCode rc;
484 CHK(rc, self->contains(self, name, &exists));
489 return rc;
496 ESR_ReturnCode rc;
498 CHK(rc, self->contains(self, name, &exists));
503 return rc;
510 ESR_ReturnCode rc;
512 CHK(rc, self->contains(self, name, &exists));
517 return rc;
524 ESR_ReturnCode rc;
526 CHK(rc, self->contains(self, name, &exists));
531 return rc;
537 ESR_ReturnCode rc;
541 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
542 CHKLOG(rc, firePropertyChanged(self, name, pair->value, NULL, pair->type));
543 CHK(rc, HashMapRemove(data->value, name));
547 return rc;
553 ESR_ReturnCode rc;
559 CHK(rc, data->value->get(data->value, name, (void **)&pair));
561 CHK(rc, self->removeProperty(self, name));
574 return rc;
583 ESR_ReturnCode rc;
597 rc = self->getPropertyType(self, key, &type);
598 if (rc == ESR_SUCCESS)
600 CHKLOG(rc, self->getProperty(self, key, (void **)&value, type));
601 CHKLOG(rc, self->removeProperty(self, key));
605 else if (rc != ESR_NO_MATCH_ERROR)
607 PLogError(ESR_rc2str(rc));
613 rc = ESR_OUT_OF_MEMORY;
618 CHKLOG(rc, self->setProperty(self, key, value, TYPES_PLCHAR));
630 rc = self->getPropertyType(self, key, &type);
631 if (rc == ESR_SUCCESS)
633 CHKLOG(rc, self->getProperty(self, key, (void **)&value, type));
634 CHKLOG(rc, self->removeProperty(self, key));
638 else if (rc != ESR_NO_MATCH_ERROR)
640 PLogError(ESR_rc2str(rc));
645 CHKLOG(rc, self->setProperty(self, key, value, TYPES_PLCHAR));
652 rc = ESR_OUT_OF_MEMORY;
666 return rc;
672 ESR_ReturnCode rc;
674 CHK(rc, HashMapGetSize(data->value, size));
677 return rc;
684 ESR_ReturnCode rc;
686 CHK(rc, HashMapGetKeyAtIndex(data->value, index, key));
689 return rc;
697 ESR_ReturnCode rc;
699 CHK(rc, self->getProperty(self, key, (void **)&value, TYPES_PLCHAR));
705 rc = ESR_OUT_OF_MEMORY;
708 CHKLOG(rc, lstrtoi(value, newValue, 10));
709 CHKLOG(rc, self->setProperty(self, key, newValue, TYPES_INT));
715 return rc;
723 ESR_ReturnCode rc;
725 CHK(rc, self->getProperty(self, key, (void **)&value, TYPES_PLCHAR));
731 rc = ESR_OUT_OF_MEMORY;
734 CHKLOG(rc, lstrtoi(value, newValue, 10));
735 CHKLOG(rc, self->setProperty(self, key, newValue, TYPES_UINT16_T));
741 return rc;
749 ESR_ReturnCode rc;
751 CHK(rc, self->getProperty(self, key, (void **)&value, TYPES_PLCHAR));
757 rc = ESR_OUT_OF_MEMORY;
760 CHKLOG(rc, lstrtosize_t(value, newValue, 10));
761 CHKLOG(rc, self->setProperty(self, key, newValue, TYPES_SIZE_T));
767 return rc;
775 ESR_ReturnCode rc;
777 CHK(rc, self->getProperty(self, key, (void **)&value, TYPES_PLCHAR));
783 rc = ESR_OUT_OF_MEMORY;
786 CHKLOG(rc, lstrtof(value, newValue));
787 CHKLOG(rc, self->setProperty(self, key, newValue, TYPES_FLOAT));
793 return rc;
801 ESR_ReturnCode rc;
803 CHK(rc, self->getProperty(self, key, (void **)&value, TYPES_PLCHAR));
809 rc = ESR_OUT_OF_MEMORY;
812 rc = lstrtob(value, newValue);
813 if (rc != ESR_SUCCESS)
816 return rc;
818 rc = self->setProperty(self, key, newValue, TYPES_BOOL);
819 if (rc != ESR_SUCCESS)
822 return rc;
829 return rc;
854 ESR_ReturnCode rc = ESR_SUCCESS;
860 /* CHKLOG(rc, PFileSystemCreatePFile(filename, ESR_TRUE, &file));
861 CHKLOG(rc, PFileOpen(file, L("r")));*/
870 CHKLOG(rc, pf_get_cwd (cwd, &len));
872 rc = ESR_OPEN_ERROR;
877 rc = LStringCreate(&valueBuffer);
878 if (rc != ESR_SUCCESS)
889 rc = ESR_READ_ERROR;
890 PLogError(ESR_rc2str(rc));
904 if (rc != ESR_SUCCESS) goto CLEANUP;
948 rc = LStringAppend(valueBuffer, value);
949 if (rc != ESR_SUCCESS)
951 PLogError(ESR_rc2str(rc));
956 rc = LStringToLCHAR(valueBuffer, &value);
958 if (rc != ESR_SUCCESS)
960 PLogError(ESR_rc2str(rc));
963 rc = addMapping(self, key, value, data);
969 if (rc != ESR_SUCCESS)
971 PLogError(ESR_rc2str(rc));
974 rc = LStringCreate(&valueBuffer);
975 if (rc != ESR_SUCCESS)
977 PLogError(ESR_rc2str(rc));
985 rc = ESR_READ_ERROR;
986 PLogError(ESR_rc2str(rc));
991 rc = ESR_CLOSE_ERROR;
992 PLogError(ESR_rc2str(rc));
1003 return rc;
1018 ESR_ReturnCode rc;
1037 CHKLOG(rc, lstrtoi(text + beginning, &value, 10));
1038 CHKLOG(rc, IntArrayListAdd(list, value));
1043 return rc;
1051 ESR_ReturnCode rc;
1053 CHK(rc, HashMapGet(data->value, name, (void **)&pair));
1057 return rc;
1071 ESR_ReturnCode rc;
1081 rc = HashMapGet(data, key, (void **)&type);
1082 if (rc == ESR_NO_MATCH_ERROR)
1086 CHKLOG(rc, self->setLCHAR(self, key, value));
1088 else if (rc == ESR_SUCCESS)
1093 CHKLOG(rc, lstrtoi(value, &iValue, 10));
1094 CHKLOG(rc, self->contains(self, key, &exists));
1096 CHKLOG(rc, self->removeAndFreeProperty(self, key));
1097 CHKLOG(rc, self->setInt(self, key, iValue));
1100 CHKLOG(rc, lstrtosize_t(value, &size_tValue, 10));
1102 CHKLOG(rc, self->contains(self, key, &exists));
1104 CHKLOG(rc, self->removeAndFreeProperty(self, key));
1105 CHKLOG(rc, self->setUint16_t(self, key, (asr_uint16_t) size_tValue));
1108 CHKLOG(rc, lstrtosize_t(value, &size_tValue, 10));
1109 CHKLOG(rc, self->contains(self, key, &exists));
1111 CHKLOG(rc, self->removeAndFreeProperty(self, key));
1112 CHKLOG(rc, self->setSize_t(self, key, size_tValue));
1115 CHKLOG(rc, lstrtof(value, &fValue));
1116 CHKLOG(rc, self->contains(self, key, &exists));
1118 CHKLOG(rc, self->removeAndFreeProperty(self, key));
1119 CHKLOG(rc, self->setFloat(self, key, fValue));
1122 CHKLOG(rc, lstrtob(value, &bValue));
1123 CHKLOG(rc, self->contains(self, key, &exists));
1125 CHKLOG(rc, self->removeAndFreeProperty(self, key));
1126 CHKLOG(rc, self->setBool(self, key, bValue));
1129 CHKLOG(rc, self->contains(self, key, &exists));
1132 CHKLOG(rc, self->getProperty(self, key, (void **)&iList, TYPES_INTARRAYLIST));
1133 CHKLOG(rc, self->removeProperty(self, key));
1134 CHKLOG(rc, iList->destroy(iList));
1136 CHKLOG(rc, IntArrayListCreate(&iList));
1137 CHKLOG(rc, parseIntList(self, value, iList));
1138 CHKLOG(rc, self->setProperty(self, key, iList, TYPES_INTARRAYLIST));
1143 CHKLOG(rc, self->contains(self, key, &exists));
1145 CHKLOG(rc, self->removeAndFreeProperty(self, key));
1146 CHKLOG(rc, self->setLCHAR(self, key, value));
1150 return rc;
1152 return rc;
1158 ESR_ReturnCode rc;
1169 CHKLOG(rc, HashMapCreate(&parameterList));
1171 CHKLOG(rc, parameterList->put(parameterList, "cmdline.arbfile", &PLChar));
1172 CHKLOG(rc, parameterList->put(parameterList, "cmdline.bgsniff", &Size_t));
1173 CHKLOG(rc, parameterList->put(parameterList, "cmdline.channel", &PLChar));
1174 CHKLOG(rc, parameterList->put(parameterList, "cmdline.datapath", &PLChar));
1175 CHKLOG(rc, parameterList->put(parameterList, "cmdline.DataCaptureDirectory", &PLChar));
1176 CHKLOG(rc, parameterList->put(parameterList, "cmdline.detail_res", &PLChar));
1177 CHKLOG(rc, parameterList->put(parameterList, "cmdline.lda", &PLChar));
1178 CHKLOG(rc, parameterList->put(parameterList, "cmdline.modelfiles", &PLChar));
1179 CHKLOG(rc, parameterList->put(parameterList, "cmdline.modelfiles11", &PLChar));
1180 CHKLOG(rc, parameterList->put(parameterList, "cmdline.modelfiles8", &PLChar));
1181 CHKLOG(rc, parameterList->put(parameterList, "cmdline.lda11", &PLChar));
1182 CHKLOG(rc, parameterList->put(parameterList, "cmdline.lda8", &PLChar));
1183 CHKLOG(rc, parameterList->put(parameterList, "cmdline.results", &PLChar));
1184 CHKLOG(rc, parameterList->put(parameterList, "cmdline.rules", &PLChar));
1185 CHKLOG(rc, parameterList->put(parameterList, "cmdline.tcp", &PLChar));
1186 CHKLOG(rc, parameterList->put(parameterList, "cmdline.multable", &PLChar));
1187 CHKLOG(rc, parameterList->put(parameterList, "cmdline.parfile", &PLChar));
1188 CHKLOG(rc, parameterList->put(parameterList, "cmdline.vocabulary", &PLChar));
1189 CHKLOG(rc, parameterList->put(parameterList, "cmdline.use_image", &Int));
1190 CHKLOG(rc, parameterList->put(parameterList, "cmdline.semproc_verbose", &Bool));
1191 CHKLOG(rc, parameterList->put(parameterList, "cmdline.nametagPath", &PLChar));
1194 CHKLOG(rc, parameterList->put(parameterList, "cmdline.bgsniff_min", &Size_t));
1195 CHKLOG(rc, parameterList->put(parameterList, "cmdline.silence_duration_in_frames", &Size_t));
1196 CHKLOG(rc, parameterList->put(parameterList, "cmdline.end_of_utterance_hold_off_in_frames", &Size_t));
1197 CHKLOG(rc, parameterList->put(parameterList, "cmdline.gatedmode", &Bool));
1200 CHKLOG(rc, parameterList->put(parameterList, "SREC.Recognizer.utterance_timeout", &Size_t));
1201 CHKLOG(rc, parameterList->put(parameterList, "SREC.Recognizer.osi_log_level", &Size_t));
1202 CHKLOG(rc, parameterList->put(parameterList, "SREC.voice_enroll.bufsz_kB", &Size_t));
1203 CHKLOG(rc, parameterList->put(parameterList, "SREC.voice_enroll.eos_comfort_frames", &Size_t));
1204 CHKLOG(rc, parameterList->put(parameterList, "SREC.voice_enroll.bos_comfort_frames", &Size_t));
1206 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.gdiff.one_nbest", &PLChar));
1207 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.gdiff.many_nbest", &PLChar));
1208 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.sd.one_nbest", &PLChar));
1209 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.sd.many_nbest", &PLChar));
1210 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.sd13.one_nbest", &PLChar));
1211 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.sd13.many_nbest", &PLChar));
1212 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.spf.one_nbest", &PLChar));
1213 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.spf.many_nbest", &PLChar));
1214 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.abs.one_nbest", &PLChar));
1215 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.abs.many_nbest", &PLChar));
1216 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.gdiffpf.one_nbest", &PLChar));
1217 CHKLOG(rc, parameterList->put(parameterList, "SREC.Confidence.sigmoid_param.gdiffpf.many_nbest", &PLChar));
1219 CHKLOG(rc, parameterList->put(parameterList, "CREC.ParVersion", &Float));
1220 CHKLOG(rc, parameterList->put(parameterList, "CREC.useCREClogger", &Int));
1221 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.dimen", &Int));
1222 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.skip", &Int));
1223 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.stay", &Int));
1224 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.durscale", &Int));
1225 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.minvar", &Int));
1226 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.maxvar", &Int));
1227 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.frame_period", &Int));
1228 CHKLOG(rc, parameterList->put(parameterList, "CREC.Acoustic.load_models", &PLChar));
1229 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.mel_dim", &Int));
1230 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.samplerate", &Size_t));
1231 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.premel", &Float));
1232 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.lowcut", &Int));
1233 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.highcut", &Int));
1234 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.window_factor", &Float));
1235 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.offset", &Float));
1236 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.ddmel", &Bool));
1237 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.peakdecayup", &Float));
1238 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.peakdecaydown", &Float));
1239 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.do_skip_even_frames", &Bool));
1240 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.do_smooth_c0", &Bool));
1241 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.melA", &IntArrayList));
1242 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.melB", &IntArrayList));
1243 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.dmelA", &IntArrayList));
1244 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.dmelB", &IntArrayList));
1245 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.ddmelA", &IntArrayList));
1246 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.ddmelB", &IntArrayList));
1249 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.cmn", &IntArrayList));
1250 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.cmn8", &IntArrayList));
1251 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.cmn11", &IntArrayList));
1252 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.tmn", &IntArrayList));
1253 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.adjust", &IntArrayList));
1254 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.debug", &Bool));
1255 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.sbindex", &IntArrayList));
1256 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.forget_factor", &IntArrayList));
1257 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.cache_resolution", &IntArrayList));
1258 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.inutt.forget_factor2", &IntArrayList));
1259 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.inutt.disable_after", &IntArrayList));
1260 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.inutt.enable_after", &IntArrayList));
1264 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.swicms.do_VN", &Bool));
1266 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.speech_detect", &Int));
1267 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.ambient_within", &Int));
1268 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.speech_above", &Int));
1269 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.start_windback", &Int));
1270 CHKLOG(rc, parameterList->put(parameterList, "CREC.Frontend.utterance_allowance", &Int));
1273 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.dimen", &Int));
1274 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.whole_dimen", &Int));
1275 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.mix_score_scale", &Float));
1276 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.start", &Int));
1277 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.chelt_imelda", &Bool));
1278 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.vfrlimit", &Bool));
1279 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.vfrthresh", &Bool));
1280 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.mix_score_scale", &Float));
1281 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.imelda_scale", &Float));
1282 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.uni_score_scale", &Float));
1283 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.uni_score_offset", &Float));
1284 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.forget_speech", &Int));
1285 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.forget_background", &Int));
1286 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.rel_low", &Int));
1287 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.rel_high", &Int));
1288 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.gap_period", &Int));
1289 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.click_period", &Int));
1290 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.breath_period", &Int));
1291 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.extend_annotation", &Int));
1292 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.min_initial_quiet_frames", &Int));
1293 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.min_annotation_frames", &Int));
1294 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.min_initial_quiet_frames", &Int));
1295 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.max_annotation_frames", &Int));
1296 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.delete_leading_segments", &Int));
1297 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.leading_segment_min_frames", &Int));
1298 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.leading_segment_max_frames", &Int));
1299 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.leading_segment_min_silence_gap_frames", &Int));
1300 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.leading_segment_accept_if_not_found", &Int));
1301 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.snr_holdoff", &Int));
1302 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.min_acceptable_snr", &Int));
1303 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.param", &Int));
1304 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.beep_size", &Int));
1305 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.beep_threshold", &Int));
1306 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.partial_distance_dim", &Int));
1307 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.partial_distance_threshold", &Int));
1308 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.partial_distance_offset", &Int));
1309 CHKLOG(rc, parameterList->put(parameterList, "CREC.Pattern.global_model_means", &IntArrayList));
1311 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.NBest", &Int));
1312 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.reject", &Int));
1313 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.often", &Int));
1314 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.partial_results", &Bool));
1315 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.wordpen", &Int));
1316 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.viterbi_prune_thresh", &Int));
1317 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_hmm_tokens", &Int));
1318 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_fsmnode_tokens", &Int));
1319 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_word_tokens", &Int));
1320 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_altword_tokens", &Int));
1321 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.num_wordends_per_frame", &Int));
1322 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_fsm_nodes", &Int));
1323 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_fsm_arcs", &Int));
1324 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_searches", &Int));
1325 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.terminal_timeout", &Int));
1326 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.optional_terminal_timeout", &Int));
1327 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.non_terminal_timeout", &Int));
1328 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.eou_threshold", &Int));
1329 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_frames", &Int));
1330 CHKLOG(rc, parameterList->put(parameterList, "CREC.Recognizer.max_model_states", &Int));
1331 CHKLOG(rc, parameterList->put(parameterList, "thread.priority", &UInt16_t));
1333 CHKLOG(rc, parameterList->put(parameterList, "G2P.Available", &Bool));
1334 CHKLOG(rc, parameterList->put(parameterList, "G2P.Data", &PLChar));
1335 CHKLOG(rc, parameterList->put(parameterList, "G2P.Dictionary", &PLChar));
1337 CHKLOG(rc, parameterList->put(parameterList, "enableGetWaveform", &Bool));
1339 rc = importKeyValueFile(self, filename, addParMapping, parameterList);
1340 if (rc != ESR_SUCCESS)
1342 CHKLOG(rc, HashMapDestroy(parameterList));
1346 return rc;
1353 ESR_ReturnCode rc;
1355 CHKLOG(rc, listeners->add(listeners, listener));
1358 return rc;
1365 ESR_ReturnCode rc;
1367 CHKLOG(rc, listeners->remove(listeners, listener));
1370 return rc;
1378 ESR_ReturnCode rc;
1384 CHKLOG(rc, HashMapGetSize(data->value, &hashSize));
1387 CHKLOG(rc, HashMapGetValueAtIndex(data->value, 0, (void **)&pair));
1392 CHKLOG(rc, IntArrayListDestroy((IntArrayList*) pair->value));
1396 CHKLOG(rc, HashMapRemoveAtIndex(data->value, 0));
1401 CHKLOG(rc, HashMapDestroy(data->value));
1406 CHKLOG(rc, data->listeners->destroy(data->listeners));
1415 return rc;