[0.11] gstreamer: audio-example: fix the example

Stefan Kost ensonic at kemper.freedesktop.org
Sun Jan 1 09:54:50 PST 2012


Module: gstreamer
Branch: 0.11
Commit: 35b817ad480e6d5d5d4d3d6bd02e9ea0a9f22aaa
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=35b817ad480e6d5d5d4d3d6bd02e9ea0a9f22aaa

Author: Stefan Sauer <ensonic at users.sf.net>
Date:   Sun Jan  1 18:34:12 2012 +0100

audio-example: fix the example

We need to scale the frequency values.

---

 tests/examples/controller/audio-example.c |    6 +++---
 1 files 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);
 



More information about the gstreamer-commits mailing list