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