Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari playback bug - clicks, etc, play at higher than nominal frequency #49

Open
jrkatz opened this issue Dec 28, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jrkatz
Copy link
Owner

jrkatz commented Dec 28, 2020

Click sounds on safari sound higher than on chrome and firefox, as if they're being played back slightly too fast.

On my macbook, the default sample rate is 48000hz. Both the offline audio context and resulting buffers have this sample rate when the click sounds are created, and the audio context for actual playback is also played at 48000hz. That leaves a few options for what's wrong

Safari bugs:

  1. The oscillator node is buggy, and assumes 44100hz so it plays slightly too fast at 48000hz creating a higher tone, or
  2. The offline audio context is buggy and downsamples to 44100hz when making the buffer, but still lists output as 48000hz, so when played back it is played slightly too fast, creating a higher tone
  3. Some other mismatching sample rate issue

etcnome bugs:
4. I can't rule anything out.

@jrkatz jrkatz added the bug Something isn't working label Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant