naudio / NAudio

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

Added events when fade-in/fade-out are complete #1136

Open SMSapereAude opened 3 months ago

SMSapereAude commented 3 months ago

According to FadeInOutSampleProvider docs:

The FadeInOutSampleProvider is a very basic fade provider, and you may want additional features like:

  • automatically fading out when you reach the end of the source
  • automatically stopping at the end of a fade out
  • cross-fading into another input.

These two events might be helpful for implementing such features. It's also a contribution from our project, for the NAudio community ;)

SMSapereAude commented 3 months ago

@markheath Hi, could you please take a look at this PR?