forked from len0rd/rockbox
[Fix Yellow] pitch_screen and configfile
place int32 in the conf file array it only supports upto 32 bit anyway.. Change-Id: I16bb6f3a924bab91739f09a4151df4e6be5bec69
This commit is contained in:
parent
13c3214d9c
commit
c7dfb9f916
2 changed files with 3 additions and 2 deletions
|
@ -37,6 +37,7 @@ struct configdata
|
||||||
int *int_p;
|
int *int_p;
|
||||||
bool *bool_p;
|
bool *bool_p;
|
||||||
char *string;
|
char *string;
|
||||||
|
int32_t *int32_p;
|
||||||
}; /* Pointer to value, a union of the possible types */
|
}; /* Pointer to value, a union of the possible types */
|
||||||
char *name; /* Pointer to the name of the item */
|
char *name; /* Pointer to the name of the item */
|
||||||
char **values; /* List of strings for enums, NULL if not enum */
|
char **values; /* List of strings for enums, NULL if not enum */
|
||||||
|
|
|
@ -56,8 +56,8 @@ static struct pvars pitch_vars;
|
||||||
|
|
||||||
static struct configdata pitchcfg[] =
|
static struct configdata pitchcfg[] =
|
||||||
{
|
{
|
||||||
{TYPE_INT, PITCH_MIN, PITCH_MAX, { .int_p = &pitch_vars.pitch }, "pitch", NULL},
|
{TYPE_INT, PITCH_MIN, PITCH_MAX, { .int32_p = &pitch_vars.pitch }, "pitch", NULL},
|
||||||
{TYPE_INT, STRETCH_MIN, STRETCH_MAX, { .int_p = &pitch_vars.stretch }, "stretch", NULL},
|
{TYPE_INT, STRETCH_MIN, STRETCH_MAX, { .int32_p = &pitch_vars.stretch }, "stretch", NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue