audiotestsrc: use macros for parser

This commit is contained in:
Wim Taymans 2019-01-16 17:39:08 +01:00
parent e4bde73552
commit fa2d877925
3 changed files with 9 additions and 9 deletions

View file

@ -207,8 +207,8 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
}
spa_pod_parse_object(param,
SPA_TYPE_OBJECT_Props, NULL,
SPA_PROP_volume, "?d", &p->volume,
SPA_PROP_mute, "?b", &p->mute);
SPA_PROP_volume, SPA_POD_OPT_Float(&p->volume),
SPA_PROP_mute, SPA_POD_OPT_Bool(&p->mute));
break;
}
default: