aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makemhr/loaddef.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-05-13 10:12:28 -0700
committerChris Robinson <[email protected]>2022-05-13 15:40:15 -0700
commitf2858ac8656c22e8d300cba42883bf3008206c1c (patch)
tree5066653c3969af2fca647eccc52a03e676548073 /utils/makemhr/loaddef.h
parent82c8e87ec77f4dff522d9ab62fdc0bd70f8214fb (diff)
Resample before frequency analysis
We want to resample before minimum phase reconstruction since that changes the phase relationship of the sampled signal, introducing a slight bit of noise from truncated sampling. It's not clear that the frequency domain resampling method is accurate, so resampling prior to frequency analysis is an alternative to ensure the resulting frequencies are given the proper phase for sampling. This also cleans up some micro allocations in loops.
Diffstat (limited to 'utils/makemhr/loaddef.h')
-rw-r--r--utils/makemhr/loaddef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makemhr/loaddef.h b/utils/makemhr/loaddef.h
index 34fbb832..63600dcd 100644
--- a/utils/makemhr/loaddef.h
+++ b/utils/makemhr/loaddef.h
@@ -7,7 +7,7 @@
bool LoadDefInput(std::istream &istream, const char *startbytes, std::streamsize startbytecount,
- const char *filename, const uint fftSize, const uint truncSize, const ChannelModeT chanMode,
- HrirDataT *hData);
+ const char *filename, const uint fftSize, const uint truncSize, const uint outRate,
+ const ChannelModeT chanMode, HrirDataT *hData);
#endif /* LOADDEF_H */