gst/: Use audiotestsrc instead of sinesrc (#323798).

Original commit message from CVS:
* gst/goom/gstgoom.c:
* gst/level/level-example.c: (main):
* gst/smoothwave/demo-osssrc.c: (main):
Use audiotestsrc instead of sinesrc (#323798).
This commit is contained in:
Tim-Philipp Müller 2005-12-11 19:25:41 +00:00
parent 5a91d04ed4
commit 945cf26c5a
4 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2005-12-11 Tim-Philipp Müller <tim at centricular dot net>
* gst/goom/gstgoom.c:
* gst/level/level-example.c: (main):
* gst/smoothwave/demo-osssrc.c: (main):
Use audiotestsrc instead of sinesrc (#323798).
2005-12-11 Stefan Kost <ensonic@users.sf.net>
* sys/oss/gstosssink.c: (gst_oss_sink_class_init):

View file

@ -25,7 +25,7 @@
* <title>Example launch line</title>
* <para>
* <programlisting>
* gst-launch -v sinesrc ! goom ! ffmpegcolorspace ! xvimagesink
* gst-launch -v audiotestsrc ! goom ! ffmpegcolorspace ! xvimagesink
* </programlisting>
* </para>
* </refsect2>

View file

@ -58,7 +58,7 @@ message_handler (GstBus * bus, GstMessage * message, gpointer data)
int
main (int argc, char *argv[])
{
GstElement *sinesrc, *audioconvert, *level, *fakesink;
GstElement *audiotestsrc, *audioconvert, *level, *fakesink;
GstElement *pipeline;
GstCaps *caps;
GstBus *bus;
@ -71,8 +71,8 @@ main (int argc, char *argv[])
pipeline = gst_pipeline_new (NULL);
g_assert (pipeline);
sinesrc = gst_element_factory_make ("sinesrc", NULL);
g_assert (sinesrc);
audiotestsrc = gst_element_factory_make ("audiotestsrc", NULL);
g_assert (audiotestsrc);
audioconvert = gst_element_factory_make ("audioconvert", NULL);
g_assert (audioconvert);
level = gst_element_factory_make ("level", NULL);
@ -80,9 +80,9 @@ main (int argc, char *argv[])
fakesink = gst_element_factory_make ("fakesink", NULL);
g_assert (fakesink);
gst_bin_add_many (GST_BIN (pipeline), sinesrc, audioconvert, level,
gst_bin_add_many (GST_BIN (pipeline), audiotestsrc, audioconvert, level,
fakesink, NULL);
g_assert (gst_element_link (sinesrc, audioconvert));
g_assert (gst_element_link (audiotestsrc, audioconvert));
g_assert (gst_element_link_filtered (audioconvert, level, caps));
g_assert (gst_element_link (level, fakesink));

View file

@ -24,7 +24,7 @@ main (int argc, char *argv[])
bin = gst_pipeline_new ("bin");
src = gst_element_factory_make ("sinesrc", "src");
src = gst_element_factory_make ("audiotestsrc", "src");
wave = gst_element_factory_make ("smoothwave", "wave");
ximage = gst_element_factory_make (DEFAULT_VIDEOSINK, "sink");
g_return_val_if_fail (src != NULL, -1);