mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-27 00:38:21 +00:00
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:
parent
5a91d04ed4
commit
945cf26c5a
|
@ -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>
|
2005-12-11 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* sys/oss/gstosssink.c: (gst_oss_sink_class_init):
|
* sys/oss/gstosssink.c: (gst_oss_sink_class_init):
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
* <title>Example launch line</title>
|
* <title>Example launch line</title>
|
||||||
* <para>
|
* <para>
|
||||||
* <programlisting>
|
* <programlisting>
|
||||||
* gst-launch -v sinesrc ! goom ! ffmpegcolorspace ! xvimagesink
|
* gst-launch -v audiotestsrc ! goom ! ffmpegcolorspace ! xvimagesink
|
||||||
* </programlisting>
|
* </programlisting>
|
||||||
* </para>
|
* </para>
|
||||||
* </refsect2>
|
* </refsect2>
|
||||||
|
|
|
@ -58,7 +58,7 @@ message_handler (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
GstElement *sinesrc, *audioconvert, *level, *fakesink;
|
GstElement *audiotestsrc, *audioconvert, *level, *fakesink;
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
@ -71,8 +71,8 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
pipeline = gst_pipeline_new (NULL);
|
pipeline = gst_pipeline_new (NULL);
|
||||||
g_assert (pipeline);
|
g_assert (pipeline);
|
||||||
sinesrc = gst_element_factory_make ("sinesrc", NULL);
|
audiotestsrc = gst_element_factory_make ("audiotestsrc", NULL);
|
||||||
g_assert (sinesrc);
|
g_assert (audiotestsrc);
|
||||||
audioconvert = gst_element_factory_make ("audioconvert", NULL);
|
audioconvert = gst_element_factory_make ("audioconvert", NULL);
|
||||||
g_assert (audioconvert);
|
g_assert (audioconvert);
|
||||||
level = gst_element_factory_make ("level", NULL);
|
level = gst_element_factory_make ("level", NULL);
|
||||||
|
@ -80,9 +80,9 @@ main (int argc, char *argv[])
|
||||||
fakesink = gst_element_factory_make ("fakesink", NULL);
|
fakesink = gst_element_factory_make ("fakesink", NULL);
|
||||||
g_assert (fakesink);
|
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);
|
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_filtered (audioconvert, level, caps));
|
||||||
g_assert (gst_element_link (level, fakesink));
|
g_assert (gst_element_link (level, fakesink));
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
bin = gst_pipeline_new ("bin");
|
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");
|
wave = gst_element_factory_make ("smoothwave", "wave");
|
||||||
ximage = gst_element_factory_make (DEFAULT_VIDEOSINK, "sink");
|
ximage = gst_element_factory_make (DEFAULT_VIDEOSINK, "sink");
|
||||||
g_return_val_if_fail (src != NULL, -1);
|
g_return_val_if_fail (src != NULL, -1);
|
||||||
|
|
Loading…
Reference in a new issue