[gst-devel] gst-jack question

Samokhvalov Anton anton at sycore.org
Wed Jun 22 02:34:19 CEST 2005


Hi

1) Sorry for my very, very bad English.
2) Can anybody tell me how to construct proper pipeline with jacksink? I tried 
many times with many combinations(and of course use google), but it does not 
work. Best result(without errors and warnings) I have with:
        d_pipeline = gst_thread_new( "app" );
        src = gst_element_factory_make( "filesrc", "src" );
        decoder = gst_element_factory_make( "spider", "decoder" );
        jackbin = gst_element_factory_make( "jackbin", "jackbin" );
        d_audiosink = gst_element_factory_make( "jacksink", "a_sink" );
        audioconvert = gst_element_factory_make( "audioconvert", "convert" );
        audioscale = gst_element_factory_make( "audioscale", "scale" );

        g_object_set( G_OBJECT( src ), "location", (const char*)
(location.local8Bit()), NULL );
        g_signal_connect( G_OBJECT( src ), "eos", G_CALLBACK( eos ), 
d_pipeline );

        d_volume = gst_element_factory_make( "volume", "volume" );

        gst_bin_add( GST_BIN( jackbin ), d_audiosink );
        gst_bin_add( GST_BIN( jackbin ), audioconvert );
        gst_bin_add( GST_BIN( jackbin ), audioscale );

        gst_element_link( audioconvert, audioscale );
        gst_element_link( audioscale, d_audiosink );

        gst_bin_add( GST_BIN( d_pipeline ), src );
        gst_bin_add( GST_BIN( d_pipeline ), decoder );
        gst_bin_add( GST_BIN( d_pipeline ), d_volume );
        gst_bin_add( GST_BIN( d_pipeline ), jackbin );

        gst_element_link( src, decoder );
        gst_element_link( decoder, d_volume );
        gst_element_link( d_volume, jackbin );
There are no console errors and warnings, and of course no sound.

Thanks.
Samokhvalov Anton.




More information about the gstreamer-devel mailing list