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

Resample via a libsamplerate #117

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Commits on Aug 28, 2024

  1. Resample via a libsamplerate

    We need to do this for recording as we can't specify a rate.
    
    We need to do this for playback for sample rates outside of the
    browser's supported range. That includes the current default rate for
    Firefox and older Safari.
    
    Uses a resampler build that doesn't support medium/best to save on
    bundle size.
    
    I've also increased the buffer size so I can play a 44k sample in an
    OK-ish way. Maybe 256 will be needed.
    
    We know Firefox on Windows still performs poorly. It did badly with
    audio before these changes.
    microbit-matt-hillsdon committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    fdf0e34 View commit details
    Browse the repository at this point in the history