Project

General

Profile

Feature #426 ยป 0047-Add-e_client_launch-audio-tag.patch

Marko Lindqvist, 08/05/2026 08:02 AM

View differences:

client/audio.c
#define SNDSPEC_SUFFIX ".soundspec"
#define MUSICSPEC_SUFFIX ".musicspec"
#define SOUNDSPEC_CAPSTR "+Freeciv-3.2-soundset"
#define SOUNDSPEC_CAPSTR "+Freeciv-soundset-3.4-Devel-2026.Aug.05"
#define MUSICSPEC_CAPSTR "+Freeciv-3.2-musicspec"
/* Keep them open throughout */
client/client_main.c
cache_tilesets();
audio_real_init(sound_set_name, music_set_name, sound_plugin_name);
start_menu_music("music_menu", NULL);
audio_play_sound("e_client_launch", nullptr, nullptr);
start_menu_music("music_menu", nullptr);
if (!postpone_tileset) {
int tsret = default_tileset_select();
data/stdsounds.soundspec
[soundspec]
; Format and options of this spec file:
options = "+Freeciv-3.2-soundset"
options = "+Freeciv-soundset-3.4-Devel-2026.Aug.05"
[info]
artists = "\
......
;e_unit_escaped = ""
; Those pseudo-events are only used in the sound system.
;e_client_launch = ""
e_enter_game = "stdsounds/fanfare.ogg" ; [spring]
;e_client_quit = ""
;e_leave_game = ""
    (1-1/1)