[gcompris-devel] interrupt playing ogg
Bruno Coudoin
bruno.coudoin at free.fr
Sun Mar 7 05:08:01 UTC 2004
Le sam 06/03/2004 à 22:31, Ralf Jardon a écrit :
> Am Sa, den 06.03.2004 schrieb Bruno Coudoin um 18:49:
> > No, we cannot interrupt it. We may include this but it's not a good
> > solution either. If you cut the sound in the middle, it will not 'ear'
> > good.
> > The best and simplest option is maybe to pause the board while your
> > intro is played or find solution around this concept.
>
> OK, pause the board is also a good solution. Can you please give me a
> hint how i can pause the board exactly for the playing time?
>
Unfortunatly, it's not that easy as well. I looked a bit to the code and
it implies to enhance soundutils.c. There is currently a sound policy
concept but it was not completly implemented. It is not even possible to
do what we want here with this policy.
There is perhaps a simpler way but what I found to be the most flexible
would be to 'attach' a policy concept to each sound like this:
gcompris_play_ogg(Sound_Policy policy, char *sound, ...)
Then pass it to the playing queue (not sure how). There is a
pending_queue, may be we could manage a pending policy or better create
a struct that handle (policy, sound) together.
And finaly, after
decode_ogg_file(file);
We could say if policy is to unpause, find the current board and unpause
it.
All this code is multi-threaded and is so not so easy to work on.
Do you feel up to the task ?
Bruno.
> > I am happy your project is on track. Don't hesitate to share with us the
> > results of your study, good or bad. The big question that aunt my nights
> > ;) is wether gcompris brings something to the kids and what.
>
> No problem. The first phase is ending in the middle of april, the second
> phase starts briefly thereafter and should be ready in august-september.
>
> I will report occasionally so you can sleep well soon ;-)
>
> >
> > Bruno.
> >
> > Le sam 06/03/2004 à 14:03, Ralf Jardon a écrit :
> > > Hi Bruno,
> > >
> > > now i worked with gcompris in the kindergarten for 3 weeks. The tendency
> > > is good and everything is working fine.
> > >
> > > In this first phase i have used erase, clickgame, gletters, enumerate,
> > > smallnumbers and algebra_plus.
> > >
> > > In order to train the kids working without an adult i have added many
> > > linguistic instructions.
> > >
> > > But now i have a problem: If an ogg-file is playing (e.g: "now you have
> > > to move the mouse in order to collect the items"... or something like
> > > what) i cannot play another ogg file. In many situations the kids are
> > > faster whan the "computer-speaker" and the next ogg-files are playing
> > > with temporal delay. So the question is: is it possible to interrupt a
> > > playing ogg?
> > >
> > > I have extended the six boards above in many details and if i have a
> > > solution for my problem i can send you a lot of patches...
> > >
> > > bye
> > > Ralf
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > > GenToo technologies. Learn everything from fundamentals to system
> > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > _______________________________________________
> > > gcompris-devel mailing list
> > > gcompris-devel at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gcompris-devel
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id70&alloc_id638&opÌk
> > _______________________________________________
> > gcompris-devel mailing list
> > gcompris-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gcompris-devel
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
> _______________________________________________
> gcompris-devel mailing list
> gcompris-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gcompris-devel
>
More information about the Gcompris-devel
mailing list