Open
Description
Currently for some ports and some audio play mechanisms, there can be clicks at the beginning and/or the end of a sample due to sudden level shifts. We have support for quiescent values but these are often sample-file dependent.
Some ports ramp the amplitude up and down, but this prevents gapless playback and lengthens playing short samples (#3626).
We have also recommended in the past that users add ramping to their own audio files.
We should look at how this problem is solved in the real world, and try to emulate that. In many cases it may be done by speaker or amplifier disabling, which allows for a "soft" settling. Perhaps an audio enable/disable pin can be passed optionally to the audio play objects or methods.