summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-16 00:32:44 -0500
committerXANTRONIX Development2022-02-16 00:32:44 -0500
commit7f5e3cde03b329539fc0b87cc7c97d8c89e76c51 (patch)
tree03c1f3d27d299b397eba74e40cf9aaccbd81139e
parentb31d28687a54b8786b5df44e8039b21702a68296 (diff)
downloadxas-7f5e3cde03b329539fc0b87cc7c97d8c89e76c51.tar.gz
xas-7f5e3cde03b329539fc0b87cc7c97d8c89e76c51.tar.bz2
xas-7f5e3cde03b329539fc0b87cc7c97d8c89e76c51.zip
yeah that's better
-rw-r--r--src/spatial.c2
1 files changed, 1 insertions, 1 deletions
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) {