MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / freqToPitch

Function freqToPitch

src/Audio/src/AudioEngine.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 static float freqToPitch(int32_t freq)
49 {
50 return freq / 22000.0f;
51 }
52
53 static float panToPosition(int32_t pan)
54 {

Callers 1

applyPitchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected