This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
client:sound:sound_howto [2018/03/08 12:03] karl created |
client:sound:sound_howto [2018/03/10 06:15] karl Fix internal link to sounds.conf |
||
---|---|---|---|
Line 22: | Line 22: | ||
To make these event sounds working inside the client, the client has to know, where these event files are located on the system . \\ | To make these event sounds working inside the client, the client has to know, where these event files are located on the system . \\ | ||
When the client starts, it checks for two sound related configuration files in the HOME directory [[:client:crossfire|.crossfire]] : //sndconfig// and //sounds// . \\ | When the client starts, it checks for two sound related configuration files in the HOME directory [[:client:crossfire|.crossfire]] : //sndconfig// and //sounds// . \\ | ||
+ | |||
===== Configuration File sounds ===== | ===== Configuration File sounds ===== | ||
+ | :!: For recent 1.71+ versions of the client, see [[#Configuration File sounds.conf]] . | ||
+ | |||
From the //client/sound-src/common.c// : | From the //client/sound-src/common.c// : | ||
<code c> | <code c> | ||
Line 85: | Line 87: | ||
/root/.crossfire/cf_sounds/Missle1.raw 80 "icestorm" | /root/.crossfire/cf_sounds/Missle1.raw 80 "icestorm" | ||
</code> | </code> | ||
+ | |||
+ | ===== Configuration File sounds.conf ===== | ||
+ | Since version 1.71.0 of the client, the above [[#sounds]] file name has changed to sounds.conf. \\ | ||
+ | A look inside the [[https://debian.org|Debian]] package //crossfire-client-sounds_1.71.0-3_all.deb// revealed, | ||
+ | that it may be located inside the //usr/share/games/crossfire-client/sounds// directory among the various now .wav and since version 1.72 also .ogg files. \\ | ||
+ | The header has not changed, but the syntax it seems : | ||
+ | <code conf> | ||
+ | # Normal Sounds | ||
+ | |||
+ | SOUND_CLOCK:130:TowerClock | ||
+ | SOUND_DRINK_POISON:130:Puke | ||
+ | SOUND_FALL_HOLE:200:MetalCrash | ||
+ | SOUND_FIRE_ARROW:80:Teeswing | ||
+ | |||
+ | # Spells | ||
+ | |||
+ | aggravation:100:bugle_charge | ||
+ | alchemy:100:magic | ||
+ | antimagic rune:100:magic | ||
+ | armour:100:magic | ||
+ | ball lightning:110:lightning1 | ||
+ | |||
+ | </code> | ||
+ | |||
===== Configuration File sndconfig ===== | ===== Configuration File sndconfig ===== | ||
TODO | TODO |