[Kde-games-devel] Re: TagaroAudio Bugfix

Mathias Kraus k.hias at gmx.de
Tue Jun 21 23:22:58 CEST 2011


Am Dienstag, 21. Juni 2011, 10:12:04 schrieb Stefan Majewsky:
> On Sat, Jun 18, 2011 at 2:03 AM, Ian Wadham <iandw.au at gmail.com> wrote:
> > I guess it would be nice, too, if TagaroAudio could automatically delete
> > instances of sounds after they have finished playing.
> 
> IIRC problem is that the OpenAL API does not offer anything to
> determine when a sound has finished playing. The only general solution
> would be polling. Concerning the playback problem, one could do
> cleanup of finished sounds on every Sound::start() call. Without
> having looked at Mathias' patch in detail, that's probably what he
> does.

At the moment it just doesn't create more than one PlaybackEvent, but replays 
the first.
The proper solution would indeed be to check if a sound is still playing when 
calling start() and deleting the PlaybackEvent and thus also the AlSource.

Greetings,
Mathias


More information about the kde-games-devel mailing list