From 7f5e3cde03b329539fc0b87cc7c97d8c89e76c51 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Feb 2022 00:32:44 -0500 Subject: yeah that's better --- src/spatial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/spatial.c b/src/spatial.c index 2d1fbe3..d7c6291 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -38,7 +38,7 @@ error_realloc_buffer: } static inline size_t sample_delta(xas_spatial_scene *scene, float distance) { - return floorf(distance / scene->speed / scene->format.sample_rate); + return floorf((distance / scene->speed) * scene->format.sample_rate); } static inline int16_t sample_scale(int16_t value, float distance) { -- cgit v1.2.3