From 5de0682c37fc8e9713bb566a637f19a3795abc4a Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 28 Oct 2023 12:34:52 +0200 Subject: prep for synched audio --- src/throwables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/throwables.c') diff --git a/src/throwables.c b/src/throwables.c index 33f6137..1ad761f 100644 --- a/src/throwables.c +++ b/src/throwables.c @@ -96,13 +96,13 @@ void update_throwables_server(platform_window* window) { throwables[i].direction.z = -throwables[i].direction.z*0.7; throwables[i].bounces++; - play_positioned_sound(CHANNEL_THROWABLES, wav_throwable_bounce, b.position, 8); + add_audio_event_to_queue(EVENT_BOUNCE_THROWABLE, b.player_id, b.position); if (throwables[i].bounces >= 3) throwables[i].direction.z = 0; } if (check_if_throwable_collided_with_object(&throwables[i], window, oldpos, throwables[i].position, &throwables[i].direction)) { - play_positioned_sound(CHANNEL_THROWABLES, wav_throwable_bounce, b.position, 8); + add_audio_event_to_queue(EVENT_BOUNCE_THROWABLE, b.player_id, b.position); } } } -- cgit v1.2.3-70-g09d2