MCPcopy Create free account
hub / github.com/adamstark/AudioFile / clamp

Method clamp

AudioFile.h:1530–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528//=============================================================
1529template <class T>
1530T AudioSampleConverter<T>::clamp (T value, T minValue, T maxValue)
1531{
1532 value = std::min (value, maxValue);
1533 value = std::max (value, minValue);
1534 return value;
1535}
1536
1537//=============================================================
1538inline double AiffUtilities::decodeAiffSampleRate (const uint8_t* bytes)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected