From 35b817ad480e6d5d5d4d3d6bd02e9ea0a9f22aaa Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sun, 1 Jan 2012 18:34:12 +0100 Subject: [PATCH] audio-example: fix the example We need to scale the frequency values. --- tests/examples/controller/audio-example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/examples/controller/audio-example.c b/tests/examples/controller/audio-example.c index 3f6a6c8..bcd649b 100644 --- a/tests/examples/controller/audio-example.c +++ b/tests/examples/controller/audio-example.c @@ -69,9 +69,9 @@ main (gint argc, gchar ** argv) gst_object_unref (csource1); cs = (GstTimedValueControlSource *) csource2; - gst_timed_value_control_source_set (cs, 0 * GST_SECOND, 220.0); - gst_timed_value_control_source_set (cs, 3 * GST_SECOND, 3520.0); - gst_timed_value_control_source_set (cs, 6 * GST_SECOND, 440.0); + gst_timed_value_control_source_set (cs, 0 * GST_SECOND, 220.0 / 20000.0); + gst_timed_value_control_source_set (cs, 3 * GST_SECOND, 3520.0 / 20000.0); + gst_timed_value_control_source_set (cs, 6 * GST_SECOND, 440.0 / 20000.0); gst_object_unref (csource2); -- 2.7.4