Skip to content

Commit ba30b51

Browse files
Resample via a libsamplerate
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.
1 parent 677585f commit ba30b51

11 files changed

+575
-99
lines changed

Diff for: 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 is
353+
334354
## Code of Conduct
335355

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

0 commit comments

Comments
 (0)