diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c index 66a71e005..c3faaaaa5 100644 --- a/spa/plugins/audiotestsrc/audiotestsrc.c +++ b/spa/plugins/audiotestsrc/audiotestsrc.c @@ -926,8 +926,8 @@ static int process_control(struct impl *this, struct spa_pod_sequence *sequence) { struct props *p = &this->props; spa_pod_object_parse(&c->value, - ":", SPA_PROP_frequency, "?d", &p->freq, - ":", SPA_PROP_volume, "?d", &p->volume, + ":", SPA_PROP_frequency, "?f", &p->freq, + ":", SPA_PROP_volume, "?f", &p->volume, NULL); break; } diff --git a/spa/tests/test-control.c b/spa/tests/test-control.c index 0be0e2a46..8c6107273 100644 --- a/spa/tests/test-control.c +++ b/spa/tests/test-control.c @@ -209,10 +209,10 @@ static void update_props(struct data *data) spa_pod_builder_control_header(&b, 0, SPA_CONTROL_Properties); spa_pod_builder_push_object(&b, SPA_TYPE_OBJECT_Props, 0); spa_pod_builder_push_prop(&b, SPA_PROP_frequency, 0); - spa_pod_builder_double(&b, ((sin(data->freq_accum) + 1.0) * 200.0) + 440.0); + spa_pod_builder_float(&b, ((sin(data->freq_accum) + 1.0) * 200.0) + 440.0); spa_pod_builder_pop(&b); spa_pod_builder_push_prop(&b, SPA_PROP_volume, 0); - spa_pod_builder_double(&b, (sin(data->volume_accum) / 2.0) + 0.5); + spa_pod_builder_float(&b, (sin(data->volume_accum) / 2.0) + 0.5); spa_pod_builder_pop(&b); spa_pod_builder_pop(&b); pod = spa_pod_builder_pop(&b);