diff options
-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 36422b8..2d1fbe3 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -42,7 +42,7 @@ static inline size_t sample_delta(xas_spatial_scene *scene, float distance) { } static inline int16_t sample_scale(int16_t value, float distance) { - return (int16_t)roundf((float)value * (1.0f / powf(distance, 2.0))); + return (int16_t)roundf((float)value * (1.0f / distance)); } static void buffer_zero(xas_spatial_buffer *buffer, size_t count) { |