MCPcopy Create free account
hub / github.com/audacity/audacity / DITHER_NOISE

Function DITHER_NOISE

libraries/lib-math/Dither.cpp:76–79  ·  view source on GitHub ↗

This is supposed to produce white noise and no dc

Source from the content-addressed store, hash-verified

74
75// This is supposed to produce white noise and no dc
76static inline float DITHER_NOISE()
77{
78 return rand() / (float)RAND_MAX - 0.5f;
79}
80
81// Defines for sample conversion
82constexpr auto CONVERT_DIV16 = float(1<<15);

Callers 3

RectangleDitherFunction · 0.85
TriangleDitherFunction · 0.85
ShapedDitherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected