MCPcopy Create free account
hub / github.com/android/ndk-samples / _parseInt

Function _parseInt

endless-tunnel/app/src/main/cpp/sfxman.cpp:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167bool SfxMan::IsIdle() { return !_bufferActive; }
168
169static const char* _parseInt(const char* s, int* result) {
170 *result = 0;
171 while (*s >= '0' && *s <= '9') {
172 *result = *result * 10 + (*s - '0');
173 s++;
174 }
175 return s;
176}
177
178static int _synth(int frequency, float amplitude, short* sample_buf,
179 int samples) {

Callers 1

PlayToneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected