SALT SOUNDS
===========

Every sound in the game is a WAV file in this folder, read when a battle
starts (or the first time it's needed). Replace a file to change a sound, or
add one to add a sound. No rebuild needed.

A sound's id is its path here without ".wav", with forward slashes:
    battle/hit.wav    -> "battle/hit"
    ui/confirm.wav    -> "ui/confirm"
Files named <name>_2.wav, <name>_3.wav ... are variants of <name>, and each
play picks one at random (battle/hit.wav and battle/hit_2.wav).
Any WAV works: PCM 8/16/24/32-bit or 32-bit float, mono or stereo, any rate.

A blow's sound plays on the frame the blow lands, with its damage number, so
a hit sound should start on its very first sample: leading silence makes it
late.

What plays when
---------------
Battle (battle/):
  an ability's cast  as its animation starts: what its script names, else
                     swing (an attack) or magic (a spell)
  an ability's hit   as each blow lands, with its number: what its script
                     names, else hit (impact for a unit knocked into
                     something); hit_heavy under it for a blow of 10 or more
  heal               as healing lands, with its green number
  death              a unit falls
  deploy             one of your units is set on the board
  round_start        DEPLOY or FIGHT
  round_won          your side is standing when a round ends
  round_lost         your side has fallen
Menus and orders (ui/):
  confirm            a button or toggle clicked; an order given
  cancel             a queued move cancelled
  cursor             an ability picked to aim
  error              an ability that's still cooling down
  tick               each number of the countdown
  turn               one of your units is up and the battle is waiting on you

An ability names its own in its script (Content/abilities/...):
    sounds = { cast = "battle/arrow", hit = "battle/arrow_hit" },
cast, hit and heal; a value is an id, a list of ids to pick from
({ "battle/hit", "battle/punch" }), or false for none. An effect or passive
that deals damage can name a hit too. Custom rules can do the same.

Volume: Options, Sound Volume (10% to start with) and Menu Sounds
(settings.xml: soundVolume and menuSoundVolume, 0 to 1). Starting the game
with -mute silences it.

"Only my units' sounds" (Options, on to start with; settings.xml
onlyMyUnitsSounds): the battle's casts, blows and deaths are heard only when
one of your units is in them, as the one acting or the one hit. Off, everyone's
are heard, other players' quieter.

The web client (Web/) plays these same files at the same moments, with the
same two settings; its build copies them, so a changed sound reaches it with
its next build.
