Author: shadowmaster
Date: Tue Mar 24 13:19:40 2009
New Revision: 34081

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34081&view=rev
Log:
Partial refactoring of music and sound effects component.

The music_track struct has been rewritten (and "promoted" to class) and
music caching behavior in Wesnoth has changed a bit. This should not
noticeably affect performance or be visible to users in other ways (if
it is, we've got regressions).

There's a hidden, disarmed core bomb in this commit. Can you find it?

Formerly, the engine resolved binary paths to music files whenever it
hit one in the playlist. Now it resolves the binary path when
loading/editing the playlist, reducing the time it takes to play a new
track by an insignificant amount of time. It will also consider a
data/add-ons/foo/music/track1.ogg as a different file to
data/core/music/track1.ogg as far as the music cache is concerned, since
it now stores entries by real paths rather than just filenames.

Added:
    trunk/src/sound_music_track.cpp
    trunk/src/sound_music_track.hpp
Modified:
    trunk/src/CMakeLists.txt
    trunk/src/Makefile.am
    trunk/src/SConscript
    trunk/src/sound.cpp
    trunk/src/sound.hpp

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: trunk/src/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/CMakeLists.txt?rev=34081&r1=34080&r2=34081&view=diff

Modified: trunk/src/Makefile.am
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/Makefile.am?rev=34081&r1=34080&r2=34081&view=diff

Modified: trunk/src/SConscript
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/SConscript?rev=34081&r1=34080&r2=34081&view=diff

Modified: trunk/src/sound.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sound.cpp?rev=34081&r1=34080&r2=34081&view=diff

Modified: trunk/src/sound.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sound.hpp?rev=34081&r1=34080&r2=34081&view=diff

Added: trunk/src/sound_music_track.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sound_music_track.cpp?rev=34081&view=auto

Added: trunk/src/sound_music_track.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sound_music_track.hpp?rev=34081&view=auto


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

Reply via email to