From 7a9479e58b59d6d376b1afc7b9dc92b455800f32 Mon Sep 17 00:00:00 2001 From: SFENCE Date: Fri, 28 Jun 2024 05:59:35 +0200 Subject: [PATCH] resend_time default value 600. --- doc/lua_api.md | 2 +- src/sound.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index 7b8323b7f..6a90b122a 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -1101,7 +1101,7 @@ Table used to specify how a sound is played: -- Available since feature `sound_params_start_time`. - resend_time = 0.0, + resend_time = 600.0, -- Approximate playback duration (from `start_time` to end) in seconds. -- This is needed to re-send sounds to new players in hearing distance. -- Unused for looped sounds. diff --git a/src/sound.h b/src/sound.h index a9e4c7ad0..1aee0e00d 100644 --- a/src/sound.h +++ b/src/sound.h @@ -73,7 +73,7 @@ struct SoundSpec float start_time = 0.0f; // keep time defines a time windows, where sound cannot be removed // and can be resend, takes no effect for looped sounds - float resend_time = 0.0f; + float resend_time = 600.0f; bool loop = false; // If true, a local fallback (ie. from the user's sound pack) is used if the // sound-group does not exist.