Skip to content

Commit bbd4860

Browse files
authored
Merge pull request #256 from Arnei/safari-waveform-generation-fix
Safari - Fixed waveform through standarized audio context
2 parents 52d5521 + 469308b commit bbd4860

3 files changed

Lines changed: 53 additions & 1 deletion

File tree

package-lock.json

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@
3939
"react-app-rewired": "^2.1.8",
4040
"react-dom": "^17.0.1",
4141
"react-draggable": "^4.4.3",
42+
"react-final-form": "^6.5.3",
4243
"react-hotkeys": "^2.0.0",
4344
"react-i18next": "^11.8.12",
44-
"react-final-form": "^6.5.3",
4545
"react-player": "^2.9.0",
4646
"react-redux": "^7.2.3",
4747
"react-scripts": "4.0.3",
4848
"react-select": "^4.3.0",
4949
"react-use": "^17.2.1",
5050
"redux": "^4.0.5",
51+
"standardized-audio-context": "^25.1.14",
5152
"typescript": "^4.2.3",
5253
"web-vitals": "^1.1.1"
5354
},

src/util/waveform.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* duncan83@gmail.com
55
*/
66

7+
import { AudioContext } from 'standardized-audio-context';
8+
79
export function Waveform(opts) {
810
this.audioContext = new AudioContext();
911
this.oCanvas = document.createElement('canvas');

0 commit comments

Comments
 (0)