MCPcopy Create free account
hub / github.com/LabSound/LabSound / isZero

Method isZero

include/LabSound/core/AudioChannel.h:100–107  ·  view source on GitHub ↗

inspects the buffer data to discover if there are any non-zero values. meant for debugging.

Source from the content-addressed store, hash-verified

98 // inspects the buffer data to discover if there are any non-zero values.
99 // meant for debugging.
100 bool isZero() const
101 {
102 const float* ptr = data();
103 for (int i = 0; i < m_length; ++i)
104 if (ptr[i] != 0.f)
105 return false;
106 return true;
107 }
108
109 // Scales all samples by the same amount.
110 void scale(float scale);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected