MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / CLIP

Function CLIP

Source/Amiga/rjp1.cpp:457–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457template<typename T> inline T CLIP(T v, T amin, T amax) {
458 if (v < amin) return amin; else if (v > amax) return amax; else return v;
459}
460
461void Rjp1::setVolume(Rjp1Channel *channel) {
462 channel->volume = (channel->volume * channel->volumeScale) / 64;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected