[Freeciv-Dev] Re: [Patch] Sound8
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Per I. Mathisen wrote:
On Tue, 12 Feb 2002, Raimar Falke wrote:
I also got this "{ss}..." messages. It looks like I have to ask Per
for this.
This happens when you call the esd_stop_something function, which is meant
to stop looping of a sample, and the sample isn't loooping. I put that in
because this stopped another bug from happening sometimes that caused
infinite looping (i think), and the esd_kill_something function which is
the right one to use simply isn't imlemented in the library.
esd_free_something is called on the "oldest" element in the circular
buffer if it hasn't already been reset.
Unfortunately, the code never actually resets the elements when the
sound sample it corresponds to is freed, so once the buffer is full this
will happen every time a sample is played.
Fixing it isn't trivial, unless there are more ESD library functions
that are currently in use.
Assuming ESD doesn't have a "maximum channels" limit, one solution would
be to just start the sample and not track it at all thereafter. Then it
can end at its own time...the problem being that on shutodwn() there is
no way for us to stop it. Obviously the music sample ID must be
tracked, since only one music should be playing at a time - but with
music we can be pretty sure that it won't stop until we tell it to.
And SDL has similar (though not identical) problems...
jason
- [Freeciv-Dev] [Patch] Sound8, Raimar Falke, 2002/02/01
- [Freeciv-Dev] Re: [Patch] Sound8, Raimar Falke, 2002/02/12
- [Freeciv-Dev] Re: [Patch] Sound8, Anthony Ferrand, 2002/02/12
- [Freeciv-Dev] Re: [Patch] Sound8, Raimar Falke, 2002/02/12
- [Freeciv-Dev] Re: [Patch] Sound8, Anthony Ferrand, 2002/02/12
- [Freeciv-Dev] Re: [Patch] Sound8, Raimar Falke, 2002/02/12
- [Freeciv-Dev] Re: [Patch] Sound8, Per I. Mathisen, 2002/02/12
- [Freeciv-Dev] Re: [Patch] Sound8,
Jason Short <=
- [Freeciv-Dev] Re: [Patch] Sound8, Per I. Mathisen, 2002/02/15
- [Freeciv-Dev] Re: [Patch] Sound8, Jason Short, 2002/02/15
- [Freeciv-Dev] Re: [Patch] Sound8, Per I. Mathisen, 2002/02/15
- [Freeciv-Dev] Re: [Patch] Sound8, Raimar Falke, 2002/02/13
[Freeciv-Dev] Re: [Patch] Sound8, Jason Short, 2002/02/12
[Freeciv-Dev] Re: [Patch] Sound8, Per I. Mathisen, 2002/02/17
|
|