Open
Description
Is there any way to apply a fade-out to the end of a tone, rather than fading from the beginning through the end? This would better match the behavior of fade_in, which can be given a short duration to quickly fade the audio in. Providing fade_out a similarly short duration just leads to the tone rapidly fading out at the start, rather than doing a quick fade at the end.
Here's the project I'm working with using rodio, with the logic that almost works for the fading, except for the aforementioned issue with the fade_out. It's easier to hear the issue if you increase the TONE_DURATION constant to 5 seconds, where it's very clear the fade isn't behaving as desired.