client:sound:sound_howto
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
client:sound:sound_howto [2018/03/08 12:03] – created karl | client:sound:sound_howto [2025/04/18 13:09] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 19: | Line 19: | ||
When the client understands the sound commands it receives from the server, then it has the ability to play at least sounds for events, \\ as the sounds folder of the Crossfire SVN repository contains around 30 or 40 .raw sound files. \\ | When the client understands the sound commands it receives from the server, then it has the ability to play at least sounds for events, \\ as the sounds folder of the Crossfire SVN repository contains around 30 or 40 .raw sound files. \\ | ||
These sound.raw files are named like // | These sound.raw files are named like // | ||
+ | |||
+ | ===== Technical ===== | ||
+ | The Crossfire client uses a helper binary to play sounds. \\ | ||
+ | When the client compiles, it usually creates two different sound server binaries named // | ||
+ | The default // | ||
+ | - very legacy //alsa 0.5// | ||
+ | - legacy OSS | ||
+ | - SGI | ||
+ | - SUN | ||
+ | - SDL since v1.60.0 , needs SDL_mixer later than at least v1.2.9 | ||
+ | |||
+ | Most people will very likely have the OSS version of the cfsndserv, since the legacy ALSA code does not compile with recent 1.x ASLA libraries and their headers, and the SDL music is not enabled by default while configuring the client before compiling it: | ||
+ | >>> | ||
+ | |||
+ | ===== Configuration File sounds ===== | ||
+ | :!: For recent 1.71+ versions of the client, see [[# | ||
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 [[: | When the client starts, it checks for two sound related configuration files in the HOME directory [[: | ||
- | ===== Configuration File sounds ===== | ||
From the // | From the // | ||
<code c> | <code c> | ||
Line 85: | Line 100: | ||
/ | / | ||
</ | </ | ||
+ | |||
+ | ===== 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:// | ||
+ | that it may be located inside the // | ||
+ | The header has not changed, but the syntax it seems : | ||
+ | <code conf> | ||
+ | # Normal Sounds | ||
+ | |||
+ | SOUND_CLOCK: | ||
+ | SOUND_DRINK_POISON: | ||
+ | SOUND_FALL_HOLE: | ||
+ | SOUND_FIRE_ARROW: | ||
+ | |||
+ | # Spells | ||
+ | |||
+ | aggravation: | ||
+ | alchemy: | ||
+ | antimagic rune: | ||
+ | armour: | ||
+ | ball lightning: | ||
+ | |||
+ | </ | ||
+ | |||
===== Configuration File sndconfig ===== | ===== Configuration File sndconfig ===== | ||
TODO | TODO |
client/sound/sound_howto.1520532180.txt.gz · Last modified: (external edit)