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
In file /usr/src/navit/navit/gui/internal/gui_internal.c there is my new function:
static void gui_internal_cmd_set_active_voice_profile(struct gui_priv *this, struct widget *wm, void *data) {
struct voice_and_profilename *vapn = data;
// TODO Voice Change the active profile
dbg(lvl_debug, "----------------------------------- setting speech to '%s' (%s) with navit_set_attr", vapn->profilename, vapn->speech);
navit_set_attr(this->nav, &vapn->speech);
dbg(lvl_debug, "Changed voice to '%s'", vapn->profilename);
gui_internal_prune_menu_count(this, 1, 0);
gui_internal_menu_voice_settings(this);
}
File /usr/src/navit/navit/navit.c
int navit_set_attr(struct navit *this_, struct attr *attr) {
dbg(lvl_debug, "-------------------------------- calling generic setter method for attribute type %s", attr_to_name(attr->type))
return navit_set_attr_do(this_, attr, 0);
}
Debug log:
debug:gui_internal:gui_internal_cmd_set_active_voice_profile:----------------------------------- setting speech to 'Dutch female' ( <88>�<89>^?) with navit_set_attr
debug:navit:navit_set_attr:-------------------------------- calling generic setter method for attribute type (null)
Why the data is lost when navit_set_attr is called? The parameters have values when calling navit_set_attr but not in the function navit_set_attr itelf.
In the logfile I expect type (speech) instead of type (null).
This is the last piece I have to figure out for PR #1299
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
In file
/usr/src/navit/navit/gui/internal/gui_internal.c
there is my new function:File
/usr/src/navit/navit/navit.c
Debug log:
Why the data is lost when
navit_set_attr
is called? The parameters have values when callingnavit_set_attr
but not in the functionnavit_set_attr
itelf.In the logfile I expect
type (speech)
instead oftype (null)
.This is the last piece I have to figure out for PR #1299
Beta Was this translation helpful? Give feedback.
All reactions