Go to the source code of this file.
◆ EarSetUserDistanceUnitExportWrapper()
| void __stdcall EarSetUserDistanceUnitExportWrapper |
( |
uint32_t | unitIndex, |
|
|
uint32_t | value ) |
Forward distance-scale configuration to EAR_DLL_SetUserDistanceUnit().
- Parameters
-
| unitIndex | The distance-unit index, 0..3. |
| value | The centimetres per unit multiplied by 100. |
- Ghidra address:
- EAR: 0x1000fb70
◆ EAR_DLL_SetUserDistanceUnit()
| void __stdcall EAR_DLL_SetUserDistanceUnit |
( |
uint32_t | unitIndex, |
|
|
uint32_t | value ) |
Store a distance-unit multiplier after clearing the last EAR error.
An index above three records error 0x24 without modifying the table.
- Parameters
-
| unitIndex | The distance-unit index, 0..3. |
| value | The centimetres per unit multiplied by 100; zero is accepted. |
- Ghidra address:
- EAR: 0x1000fb84
◆ CalculateRoundedPlanarDistance()
| int32_t __stdcall CalculateRoundedPlanarDistance |
( |
const EarEventParams * | params | ) |
|
Centimetres per event-distance unit for indices 0..3, initially one for every entry.
- Ghidra address:
- EAR: 0x100360e8
- Parameters
-
| params | The parameters of the event. |
- Returns
- The distance of the event across the ground, rounded up.
- Ghidra address:
- EAR: 0x10004445
◆ CalculateDistanceAttenuation()
| uint16_t __stdcall CalculateDistanceAttenuation |
( |
uint32_t | distance, |
|
|
EarEventParams * | params ) |
Find the gain of an event at a distance, falling linearly between its two distances.
The maximum gain is first limited to 10000.
- Parameters
-
| distance | The distance of the event. |
| params | The parameters of the event. |
- Returns
- The gain.
- Ghidra address:
- EAR: 0x1000447c
◆ ConvertPlayDistancesToCentimeters()
| void __stdcall ConvertPlayDistancesToCentimeters |
( |
EarEventParams * | params | ) |
|
Convert the position and the distances of an event from its unit to centimetres.
- Parameters
-
| params | The parameters of the event. |
- Ghidra address:
- EAR: 0x10004601