diff options
author | XANTRONIX Development | 2022-02-16 00:32:44 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-16 00:32:44 -0500 |
commit | 7f5e3cde03b329539fc0b87cc7c97d8c89e76c51 (patch) | |
tree | 03c1f3d27d299b397eba74e40cf9aaccbd81139e /src | |
parent | b31d28687a54b8786b5df44e8039b21702a68296 (diff) | |
download | xas-7f5e3cde03b329539fc0b87cc7c97d8c89e76c51.tar.gz xas-7f5e3cde03b329539fc0b87cc7c97d8c89e76c51.tar.bz2 xas-7f5e3cde03b329539fc0b87cc7c97d8c89e76c51.zip |
yeah that's better
Diffstat (limited to 'src')
-rw-r--r-- | src/spatial.c | 2 |
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) { |