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

Method next

src/platforms/wasm/ui_audio_wasm.cpp.hpp:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94audio::Sample WasmAudioImpl::next() {
95 if (!mWasmInput) {
96 return audio::Sample(); // Return invalid sample
97 }
98
99 return mWasmInput->read();
100}
101
102bool WasmAudioImpl::hasNext() {
103 // On WASM, audio samples are pushed from JavaScript asynchronously

Callers 1

cacheValidationMethod · 0.45

Calls 2

SampleClass · 0.50
readMethod · 0.45

Tested by

no test coverage detected