Skip to content

Should Interpolator support f32? #119

Open
@mitchhentges

Description

@mitchhentges

Some other audio-related packages that I'm using for my application both only support up to f32 (C's float) when handling data:

Details

On Windows, my pipeline looks like:

  1. Get data from WASAPI
    • If device doesn't support F32, convert to f32 here
  2. Interpolate sample rate from the device rate to 48_000 as required by opus and rnnoise
    • Upscale from f32 -> f64 as required by sample::Interpolator.
    • Downscale back to f32 once done
    • (I'd like to remove these conversion steps^^^, if possible)
  3. Remove noise with rnnoise
  4. Encode with opus
  5. Send that sucker over the internet

This package has been invaluable to me - seeing in easy-to-understand rust an implementation of combining signals, interpolating sample rates and representing how formats look under-the-hood has been awesome! Thanks for your hard work 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions