Go to the source code of this file.
|
| void | ComputeStereoPan (Vec3f *source, CameraFrame *camera, f32 *upper, f32 *lower, s32 *volume, s32 narrow) |
| | Pan a sound between the two halves of the volume of a channel by where it is across a camera, and set its volume by its distance.
|
◆ ComputeStereoPan()
Pan a sound between the two halves of the volume of a channel by where it is across a camera, and set its volume by its distance.
- Parameters
-
| source | The source. |
| camera | The camera that hears it. |
| upper | The share of the upper half of the volume. |
| lower | The share of the lower half. |
| volume | The volume, 1024 over the distance, from at least 32. |
| narrow | Whether to pan only a little. |
- Ghidra address:
- USA: 0x8022b1d4
- Ghidra address:
- Asia: 0x8022AD24
- Ghidra address:
- EUR: 0x8022c6e4
- Ghidra address:
- JPN: 0x8022be9c
- Ghidra address:
- BRD3D: 0x10067bc0
- Ghidra address:
- BRGlide: 0x10060c30