[gst-devel] jacksink

red___hat at mail.ru red___hat at mail.ru
Mon Jun 20 12:33:22 CEST 2005


Hi

Can you give me some hints about jacksink? I can not create working pipeline 
with it, but with alsasink or with osssink all ok. My pipeline:

	GstElement *decoder, *audiosink, *jackbin, *src;
	GstElement *pipeline;
	
	gst_init (&argc, &argv);

//        pipeline = gst_pipeline_new( "app" );
        src = gst_element_factory_make( "filesrc", "src" );
        decoder = gst_element_factory_make( "spider", "decoder" );
        jackbin = gst_element_factory_make( "jackbin", "jackbin" );
        audiosink = gst_element_factory_make( "jacksink", "a_sink" );

        g_object_set( G_OBJECT( src ), "location", argv[1], NULL );
        g_signal_connect( G_OBJECT( src ), "eos", G_CALLBACK( eos ), 
jackbin );

        gst_bin_add( GST_BIN( jackbin ), audiosink );
        gst_bin_add( GST_BIN( jackbin ), src );
        gst_bin_add( GST_BIN( jackbin ), decoder );

        gst_element_link( src, decoder );
        gst_element_link( decoder, audiosink );

//      gst_bin_add( GST_BIN( pipeline ), jackbin );

        playing = TRUE;
        gst_element_set_state( jackbin, GST_STATE_READY );
//      gst_element_set_state( jackbin, GST_STATE_PLAYING );
//      gst_element_set_state( pipeline, GST_STATE_READY );
//      gst_element_set_state( pipeline, GST_STATE_PLAYING );
        while (playing) {
//     		gst_bin_iterate ( GST_BIN ( pipeline ) );
		gst_bin_iterate ( GST_BIN( jackbin ) );
        }

I use gstreamer 0.8.x

Thanks

Samokhvalov Anton




More information about the gstreamer-devel mailing list