Skip to content

Commit

Permalink
Improve support for older Safari versions (except speech) (#109)
Browse files Browse the repository at this point in the history
- Update build workflow to use Node 20.x
- Use webkitAudioContext is AudioContext is not defined
- Use audioCtx.createBuffer in place of new AudioBuffer
- Use createBufferSource in place of new AudioBufferSourceNode
- Fix layout that relied on aspect-ratio, closes #94 

An issue with the sample rate still remains for modspeech.

Changes made to accommodate Safari 13 and 14.
  • Loading branch information
microbit-robert authored Feb 22, 2024
1 parent 162fb87 commit 93065b4
Show file tree
Hide file tree
Showing 4 changed files with 516 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Configure node
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 20.x
cache: "npm"
registry-url: "https://npm.pkg.github.com"
- run: npm ci
Expand Down
Loading

0 comments on commit 93065b4

Please sign in to comment.