Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ panToPosition
Function
panToPosition
src/Audio/src/AudioEngine.cpp:53–57 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
}
52
53
static float panToPosition(int32_t pan)
54
{
55
constexpr auto kRange = 4096.0f;
56
return pan / kRange;
57
}
58
59
static AudioInstance* getInstance(AudioHandle handle)
60
{
Callers
1
applyPan
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected