mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Sound refactor and improvements (#12764)
This commit is contained in:
@@ -215,9 +215,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
new fields for TOCLIENT_SET_LIGHTING and TOCLIENT_SET_SKY
|
||||
Send forgotten TweenedParameter properties
|
||||
[scheduled bump for 5.7.0]
|
||||
PROTOCOL VERSION 43:
|
||||
"start_time" added to TOCLIENT_PLAY_SOUND
|
||||
[scheduled bump for 5.8.0]
|
||||
*/
|
||||
|
||||
#define LATEST_PROTOCOL_VERSION 42
|
||||
#define LATEST_PROTOCOL_VERSION 43
|
||||
#define LATEST_PROTOCOL_VERSION_STRING TOSTRING(LATEST_PROTOCOL_VERSION)
|
||||
|
||||
// Server's supported network protocol range
|
||||
@@ -454,15 +457,18 @@ enum ToClientCommand
|
||||
|
||||
TOCLIENT_PLAY_SOUND = 0x3f,
|
||||
/*
|
||||
s32 sound_id
|
||||
s32 server_id
|
||||
u16 len
|
||||
u8[len] sound name
|
||||
s32 gain*1000
|
||||
u8 type (0=local, 1=positional, 2=object)
|
||||
s32[3] pos_nodes*10000
|
||||
f32 gain
|
||||
u8 type (SoundLocation: 0=local, 1=positional, 2=object)
|
||||
v3f pos_nodes (in BS-space)
|
||||
u16 object_id
|
||||
u8 loop (bool)
|
||||
f32 fade
|
||||
f32 pitch
|
||||
u8 ephemeral (bool)
|
||||
f32 start_time (in seconds)
|
||||
*/
|
||||
|
||||
TOCLIENT_STOP_SOUND = 0x40,
|
||||
|
Reference in New Issue
Block a user