ondras / oscope

Configurable JavaScript oscilloscope
https://ondras.github.io/oscope/
52 stars 12 forks source link

Can't find variable: AudioContext #4

Open felix-albrecht opened 3 years ago

felix-albrecht commented 3 years ago

I was trying to get this working, but ran into the following error:

Line 7:32 Can't find variable: AudioContext

This is for the online test as well as running it locally. I have Safari 14 on macOS 10.14.

EDIT: On Google Chrome, it works.

felix-albrecht commented 3 years ago

So apparently, Safari doesn't support AudioContext. Bummer! But, awesome project!

ondras commented 3 years ago

Safari seems to support a prefixed version. I do not have access to Safari so I cannot really test that. @gopromaster, can you please confirm or reject this hypothesis?

felix-albrecht commented 3 years ago

Yes, it works partially. I replaced AudioContext() with webkitAudioContext() in app.js.

Thanks for the suggestion.

EDIT: Not everything works: Microphone Input and Sound files (local and remote) don't respond. Web Audio Signal doesn't show a moving graph, and the sound doesn't change on slider moves. Math function works great, though.