Update of bug #10776 (project wesnoth):

                  Status:        Upstream Problem => Confirmed              
             Assigned to:                cycholka => grzywacz               

    _______________________________________________________

Follow-up Comment #4:

This is not an upstream problem after all. It was with SDL_mixer 1.2.7 but
the memory leaks have been fixed in 1.2.8. In short:

09:27   cycholka        How can you not execute
sound::play_UI_sound(game_config::sounds::checkbox_release);
        cycholka        when unchecking UI sounds checbox
        cycholka        that's the reason of #10776
09:28   cycholka        the sound channel is closed but the sound is still 
playing
        cycholka        which causes memory leak and screws everything on 
relasing audio
device
09:29   Mordante        do you have a file + lineno? 
09:30   Mordante        I think the checkbox should deactivate the option after 
the
sound has finished or once the dialog is closed
        Mordante        not sure what the volume does
        cycholka        widgets/button.cpp 298
        cycholka        the problem is that playing sound is a SDL mouse event
09:31   cycholka        and relasing the button not
        cycholka        and they don't check one another
09:33   cycholka        maybe it could be solved by adding delay() to closing UI
channel?
09:37   Mordante        stop_UI_sound() should test whether a sound is playing 
and
either abort the playing or wait until the playing is finished

Makes me wonder how linux works around this. Anyway commenting out the line
in button.cpp mentioned above fixes the segfault, but I don't think removing
sound for unchecking checkbox is the solution.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?10776>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to