Lines Matching refs:var_data
186 struct var_t *var_data = var->data; in spk_set_num_var() local
188 if (!var_data) in spk_set_num_var()
191 val = var_data->u.n.value; in spk_set_num_var()
194 if (input < var_data->u.n.low || input > var_data->u.n.high) in spk_set_num_var()
196 var_data->u.n.default_val = input; in spk_set_num_var()
199 val = var_data->u.n.default_val; in spk_set_num_var()
212 if (val < var_data->u.n.low || val > var_data->u.n.high) in spk_set_num_var()
215 var_data->u.n.value = val; in spk_set_num_var()
226 if (var_data->u.n.multiplier != 0) in spk_set_num_var()
227 val *= var_data->u.n.multiplier; in spk_set_num_var()
228 val += var_data->u.n.offset; in spk_set_num_var()
234 if (!var_data->u.n.synth_fmt) in spk_set_num_var()
240 if (!var_data->u.n.out_str) in spk_set_num_var()
241 sprintf(cp, var_data->u.n.synth_fmt, (int)val); in spk_set_num_var()
243 sprintf(cp, var_data->u.n.synth_fmt, in spk_set_num_var()
244 var_data->u.n.out_str[val]); in spk_set_num_var()
251 struct var_t *var_data = var->data; in spk_set_string_var() local
253 if (!var_data) in spk_set_string_var()
258 if (!var_data->u.s.default_val) in spk_set_string_var()
261 var->p_val = var_data->u.s.default_val; in spk_set_string_var()
262 if (var->p_val != var_data->u.s.default_val) in spk_set_string_var()
263 strcpy((char *)var->p_val, var_data->u.s.default_val); in spk_set_string_var()