| 82 | } |
| 83 | |
| 84 | WasmAudioImpl::~WasmAudioImpl() { |
| 85 | // Remove UI component from JSON UI system |
| 86 | removeJsonUiComponent(fl::weak_ptr<JsonUiInternal>(mInternal)); |
| 87 | |
| 88 | // Note: We don't stop or destroy the WasmAudioInput here because: |
| 89 | // 1. It's a global singleton that may be used by other components |
| 90 | // 2. JavaScript continues to push samples regardless of C++ lifecycle |
| 91 | // 3. The WasmAudioInput is cleaned up when the module unloads |
| 92 | } |
| 93 | |
| 94 | audio::Sample WasmAudioImpl::next() { |
| 95 | if (!mWasmInput) { |
nothing calls this directly
no test coverage detected