question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safari 14.5 Support

See original GitHub issue

Hi there! First and foremost would like to thank you for the awesome project. It has been incredibly helpful. As you may know, Apple released major update to Safari a couple of days ago, which enables their experimental AudioWorklets by default. The problem is that they simply… don’t work. I am able to send and receive messages, but no logging is visible from inside the Processor modules, and it’s virtually impossible to debug it. Attempting to write data into a Float32Array and then deliver its .buffer as a Transferable over worklet’s port just returns an empty array.

Was wondering if there are any workaround/fixes or if it’s possible to remove global scope defined by Safari before SAC loads so that its compatibility mode works (which it does if you disable the experimental feature, which we can’t really tell our clients to do, especially on iOS)

TIA!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisguttandincommented, May 4, 2021

It’s possible to configure Babel to not transpile a certain feature. You don’t have to disable all es6 features. Any browser that is supported by standardized-audio-context also supports the module syntax. It’s also a requirement for the ScriptProcessor fallback for browsers without AudioWorklet support.

Maybe I’m missing something but why isn’t it ideal not to transpile something that the browser supports natively?

As mentioned in the README Safari has some limitations when it comes to the sampleRate of an OfflineAudioContext.

⚠️ Safari does not support creating an OfflineAudioContext with more than 10 channels or with a sampleRate below 44100 Hz.

But it looks like v14.5 supports anything until 3000 Hz.

0reactions
chrisguttandincommented, May 7, 2021

Thanks for your nice words. I’m happy that it proves to be useful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari 14 Release Notes | Apple Developer Documentation
Safari 14 ships with iOS & iPadOS 14 and macOS Big Sur 11. General. New Features. Added Safari Web Extensions support for macOS....
Read more >
Safari - Official Apple Support
Learn more about all the topics, resources, and contact options you need to download, update and manage your Safari settings.
Read more >
Update to the latest version of Safari - Apple Support
If a Safari update is available for your device, you can get it by updating or upgrading macOS, iOS, or iPadOS.
Read more >
Safari Release Notes | Apple Developer Documentation
Learn about changes for Safari for iOS and macOS, Web Inspector, WebKit view for iOS and macOS, and Safari view for iOS. ......
Read more >
Downloads - Apple Support
Browse and download apps for your Mac — from your Mac. Shop for apps by category, read user reviews, and buy apps in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found