| 182 | } |
| 183 | |
| 184 | fl::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 | |
| 198 | WasmAudioInput* wasm_get_audio_input() { |
| 199 | return g_wasmAudioInput; |
no test coverage detected