<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Gstreamer mailing-list,<br>
<br>
<br>
I'm trying to build a jingle program (something like <a
href="http://www.jinglepalette.com/">Jingle pallet</a>) using
Gstreamermm and Gtkmm. In the process of doing this, I ran into some
problems. <br>
<br>
Because in this program, sounds need to be played when the user
presses a button. I got that working. The thing is when I try to
play multiple sounds. Here is how I think it should be done (excuse
my poor 'image'):<br>
<br>
SoundBin1<br>
______________________________________________________________________<br>
fileSrc -- > decoderBin -- > converter -- > resampler --
> capsFilter --<br>
|<br>
|<br>
SoundBin2
|--> liveadder -- > autosink <br>
____________________________________________________________________
| <br>
fileSrc -- > decoderBin -- > converter -- > resampler --
> capsFilter --<br>
<br>
<br>
This of course works fine. But when the pipeline is started both
soundbins start playing. So what I tried doing is the following:<br>
<ol>
<li>Create all elements en add them to the pipeline.</li>
<li>Link all elements as described above.</li>
<li>Block (using the src pad of soundbin 1 and 2) with
set_blocked(true);.</li>
</ol>
<p>When a button is pressed, the program will unblock the
corresponding soundbin pad, seek to 0 and start the main pipeline.
Now the real problem: When the second button is clicked, it will
start playing at the time that has already elapsed. So if soundbin
1 has been playing for 5 seconds and soundbin 2 is started,
soundbin 2 will begin playing at 5 seconds.<br>
</p>
<p><br>
So what I really would like to know is what I am doing wrong, or
if it is even possible to do this with Gstreamer. <br>
</p>
<p>I searched around on the internet quite a bit but I couldn’t find
a thing on how to do this.<br>
</p>
<p><br>
Thanks in advance.<br>
</p>
<p>Regards,<br>
</p>
<p>Martijn<br>
</p>
</body>
</html>