coastline 0.0.4
Loading...
Searching...
No Matches
soundpan.h File Reference
#include "common/render.h"
Include dependency graph for soundpan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.

Function Documentation

◆ ComputeStereoPan()

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.

Parameters
sourceThe source.
cameraThe camera that hears it.
upperThe share of the upper half of the volume.
lowerThe share of the lower half.
volumeThe volume, 1024 over the distance, from at least 32.
narrowWhether 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