Skip to content

Commit ab07528

Browse files
authoredAug 28, 2024
Resample via a libsamplerate (#117)
We need to do this for recording as we can't specify a rate. We need to do this for playback for sample rates outside of the browser's supported range. That includes the current default rate for Firefox and older Safari. Uses a resampler build that doesn't support medium/best to save on bundle size. I've also increased the buffer size so I can play a 44k sample in an OK-ish way. Maybe 256 will be needed. We know Firefox on Windows still performs poorly. It did badly with audio before these changes. Another significant issue is that it can take 3 seconds to call getUserMedia on Desktop Safari.
1 parent 677585f commit ab07528

11 files changed

+573
-99
lines changed
 

‎README.md

+20
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,26 @@ Steps for WASM debugging in Chrome:
331331
- Enable "WebAssembly Debugging: Enable DWARF support" in DevTools Experiments
332332
- DEBUG=1 make
333333

334+
## License
335+
336+
This software is under the MIT open source license.
337+
338+
[SPDX-License-Identifier: MIT](LICENSE)
339+
340+
MicroPython for micro:bit is included in the build process via a submodule.
341+
342+
We use dependencies via the NPM registry as specified by the package.json file under common Open Source licenses.
343+
344+
Full details of each package can be found by running `license-checker`:
345+
346+
```bash
347+
$ npx license-checker --direct --summary --production
348+
```
349+
350+
Omit the flags as desired to obtain more detail.
351+
352+
A fork of libsamplerate_js to reduce bundle size is [hosted on GitHub](https://github.com/microbit-foundation/libsamplerate-js).
353+
334354
## Code of Conduct
335355

336356
Trust, partnership, simplicity and passion are our core values we live and

0 commit comments

Comments
 (0)