Ignacio R. Morelle 0763670a3f sound: Increase the mixer channel allocation from 16 to 32
This raises the sound effect (SOUND_FX) channel group size from 5 to
21.

The rationale for this change is that the current SFX channel group size
is not enough in some situations (particularly during cutscenes and with
accelerated animations enabled), and decreasing the channel group size
for sound sources (currently 8, preserved as-is in this commit) doesn't
seem like the best solution at this point considering that the sound
source feature is neglected enough as it is. Three other channels are
reserved for the turn bell, turn timer countdown sound, and UI sounds,
and it'd be an even worse idea to drop those.

The SDL_mixer documentation suggests that increased mixer channel
allocations may be a memory usage concern with a high number of channels
("We're talking REALLY high!", their words), but hopefully this small
increase is good enough for our and the UMC making community's purposes
without impacting memory usage or performance on our main supported
platforms. At least Wesnoth's RSS didn't seem to change over a megabyte
when testing this patch on Linux (using ALSA).

Note:

Should this increased limit cause issues on some platform that matters
(hopefully not!) an alternative would be to reengineer the sound channel
selection done in sound::play_sound_internal() so instead of skipping
sounds when all channels are busy, the oldest playing channel is stopped
and reset to the requested sound, for channels in the SOUND_FX group.
However, this seems too complicated to do at this point for 1.12, so yet
another alternative would be to simply reduce the number of channels
reserved for sound sources and give those back to SOUND_FX.
2014-03-15 01:34:20 -03:00
2013-06-23 10:07:53 +02:00
2014-03-02 18:58:25 +01:00
2013-03-26 21:41:37 -04:00
2014-03-02 18:35:49 +01:00
2014-03-13 13:45:50 +01:00
2014-03-08 21:30:04 +01:00
2014-03-03 23:24:50 +01:00
2014-01-01 02:08:52 -03:00
2014-03-07 19:46:06 -03:00
2014-03-07 19:46:06 -03:00
2014-02-23 22:18:30 -03:00
2014-03-08 21:30:04 +01:00

The Battle for Wesnoth is a Free, turn-based tactical strategy game with a high
fantasy theme, featuring both single-player, and online/hotseat multiplayer
combat. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand
in any number of other adventures.

The game's source code and artwork, sound, and music assets are provided under
the terms of the GNU General Public License version 2, or (at your option) any
later version. Note that for artwork, sound, and music, we interpret
"preferred form of the work for making modifications" as the modifiable form
that the author chooses to ship us for the source tree. For convenience, a
reference copy of the GNU GPL version 2 is provided in the COPYING file in
this distribution.

Some portions of the source code can be used under different license terms,
whenever stated as such in the source.

See INSTALL for instructions on how to build the game from source code.

A (translated) description of how to play the game can be found in
doc/manual/manual.*.html .

For extensive documentation about all aspects of the game, see the
official Battle for Wesnoth web site:

    http://www.wesnoth.org/

The official Battle for Wesnoth Forums (with over 400,000 posts from more than
20,000 registered members) can be found at:

    http://forums.wesnoth.org/
Description
韦诺之战
Readme 9 GiB
Languages
INI 51.6%
C++ 35.9%
Lua 5.7%
Python 4.3%
Emacs Lisp 1%
Other 1.1%