MCPcopy Create free account
hub / github.com/FastLED/FastLED / stop

Method stop

src/platforms/arm/teensy/audio_input_teensy.cpp.hpp:185–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void Teensy_I2S_Audio::stop() {
186 if (!mInitialized) {
187 return;
188 }
189
190 mInitialized = false;
191 mTotalSamplesRead = 0;
192 mBlocksAccumulated = 0;
193 mAccumulatedSamples.clear();
194
195 // Clear recorder queue
196 if (mRecorder) {
197 mRecorder->reset();
198 }
199
200 FL_WARN("Teensy I2S audio input stopped");
201}
202
203bool Teensy_I2S_Audio::error(fl::string* msg) {
204 if (msg && mHasError) {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected