URL:
<http://gna.org/bugs/?11926>
Summary: Class SoundSample does not implement
SoundSample::Stop correctly
Project: Wormux
Submitted by: gentildemon
Submitted on: dimanche 29.06.2008 à 08:00
Category: None
Severity: 2 - Minor
Priority: 1 - Later
Status: None
Assigned to: gentildemon
Originator Email:
Open/Closed: Open
Release: 0.8svn
Discussion Lock: Any
_______________________________________________________
Details:
When a new sound is played, SDL allocate a channel (referenced by an
integer). When calling SoundSample::Play, we save the channel number in
SoundSample::channel.
Then, when calling SoundSample::Stop, we call the SDL relevant method to stop
the sound currently playing on channel SoundSample::channel.
BUT, we have no guarantee that the channel has not been used for another
sound and that we are stopping this other sound.
To fix it, we must use Mix_ChannelFinished to add a callback for when a
channel finishes its chunk.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11926>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna