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

Function wasm_create_audio_input

src/platforms/wasm/audio_input_wasm.cpp.hpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184fl::shared_ptr<audio::IInput> wasm_create_audio_input(const audio::Config& config, fl::string* error_message) {
185 // Config is ignored for WASM - audio comes from JavaScript
186 (void)config;
187
188 auto input = fl::make_shared<WasmAudioInput>();
189
190 if (error_message) {
191 error_message->clear();
192 }
193
194 FL_DBG("Created WASM audio input");
195 return input;
196}
197
198WasmAudioInput* wasm_get_audio_input() {
199 return g_wasmAudioInput;

Callers 2

initWasmAudioFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected