naudio / NAudio

Audio and MIDI library for .NET
MIT License
5.38k stars 1.09k forks source link

Copy part of a wav file #1056

Open samperizal opened 11 months ago

samperizal commented 11 months ago

Greetings. it is possible from a wav file to generate another that contains a part (for example from second 4 to second 27). An example please?

markheath commented 7 months ago

There's a few ways to do it. Take a look at the OffsetSampleProvider as one example. https://www.markheath.net/post/naudio-play-extract