hermespy-rt

Minimalistic signal processing ray-tracer in C
git clone https://git.ea.contact/hermespy-rt
Log | Files | Refs

commit 5bbc539456dd5beaef4d7413014dc3551a25c9bb
parent 9387ea78d1608abfd50c8ed75c85b48906e9b438
Author: Egor Achkasov <eaachkasov@edu.hse.ru>
Date:   Wed, 27 Nov 2024 11:12:21 +0100

Change tau type

Diffstat:
Mcompute_paths.c | 2+-
Mcompute_paths.h | 2+-
Mpy_compute_paths.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/compute_paths.c b/compute_paths.c @@ -257,7 +257,7 @@ void compute_paths( IN int num_paths, /* number of paths */ IN int num_bounces, /* number of bounces */ OUT float *a, /* output array of gains (num_paths,) */ - OUT int32_t *tau /* output array of delays (num_paths,) */ + OUT float *tau /* output array of delays (num_paths,) */ ) { /* Load the scene */ diff --git a/compute_paths.h b/compute_paths.h @@ -37,7 +37,7 @@ void compute_paths( IN int num_paths, /* number of paths */ IN int num_bounces, /* number of bounces */ OUT float *a, /* output array of gains (num_paths,) */ - OUT int32_t *tau /* output array of delays (num_paths,) */ + OUT float *tau /* output array of delays (num_paths,) */ ); #endif /* COMPUTE_PATHS_H */ diff --git a/py_compute_paths.c b/py_compute_paths.c @@ -40,7 +40,7 @@ static PyObject* py_compute_paths(PyObject* self, PyObject* args) { // Output arrays for gains and delays float* a = (float*)malloc(num_paths * sizeof(float)); - int32_t* tau = (int32_t*)malloc(num_paths * sizeof(int32_t)); + float* tau = (float*)malloc(num_paths * sizeof(float)); if (!a || !tau) { PyErr_NoMemory();