naudio / NAudio

Audio and MIDI library for .NET
MIT License
5.56k stars 1.1k forks source link

BiQuad Filter set start point and duration of filter #485

Open ReeceKetley opened 5 years ago

ReeceKetley commented 5 years ago

Hi, i need to apply a BiQuad filter onto an audio track at certain postions and durations rather than the entired track. I've tried to use the SampleProvider buffer and skipping samples but this seems like a hacky method and isn't no where near reliable for my means. Thanks in advance.

markheath commented 5 years ago

You'd need to make your own SampleProvider that passes audio through the BiQuad filter, and then I'd probably just have an on-off flag that only enables it for the sections you actually want