aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-07 22:11:38 -0700
committerChris Robinson <[email protected]>2022-07-07 22:11:38 -0700
commit1ad553b5a913e11c712eb95b7ecc7cbc66f4a274 (patch)
tree6b6a4608d62e38f820eae4840081912347880a70 /alc/alu.h
parentedadd221ea71b0fd4ba58d231c7aead85af118ec (diff)
Add a config compat option for NFC distance scaling
Currently there's no way for an application to specify the "real world" scale for in-game units. If the game doesn't use one unit to represent what should be perceived as one meter to the user, the NFC filter's effect will be too near or too far sounding. This allows adjusting the unit scale as applied to the NFC filters only, correcting the misalignment. This also removes the influence of EFX's MetersPerUnit from the NFC filters, since many games don't use it, and those that do won't know it also influences the perceived wave curvature along with the air absorption strength.
Diffstat (limited to 'alc/alu.h')
-rw-r--r--alc/alu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.h b/alc/alu.h
index f3796a89..67fd09e5 100644
--- a/alc/alu.h
+++ b/alc/alu.h
@@ -24,7 +24,7 @@ enum CompatFlags : uint8_t {
};
using CompatFlagBitset = std::bitset<CompatFlags::Count>;
-void aluInit(CompatFlagBitset flags);
+void aluInit(CompatFlagBitset flags, const float nfcscale);
/* aluInitRenderer
*