summaryrefslogtreecommitdiff
path: root/src/protocol.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 14:50:52 +0200
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 14:50:52 +0200
commit7d87e8e3e9eccbb3ae351f3218276b2dae506665 (patch)
tree2a38f9ba83bb66c9e85b67aa7a18c4a4942e8d1f /src/protocol.c
parent5de0682c37fc8e9713bb566a637f19a3795abc4a (diff)
fix issue with sprites
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index e0af132..307aac3 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -19,6 +19,14 @@ network_message create_protocol_get_id_down(u32 id)
return network_create_message((u8*)buf, sizeof(protocol_get_id_downstream), MAX_NETWORK_BUFFER_SIZE);
}
+network_message create_protocol_sound_list()
+{
+ protocol_sound_list *buf = alloc_network_message(protocol_sound_list);
+ buf->type = MESSAGE_SOUND_LIST;
+ memcpy(buf->audio_events, audio_events, sizeof(audio_events));
+ return network_create_message((u8*)buf, sizeof(protocol_sound_list), MAX_NETWORK_BUFFER_SIZE);
+}
+
network_message create_protocol_user_list()
{
protocol_user_list *buf = alloc_network_message(protocol_user_list);