Prevent playback click.
When using non-blocking playback in
sounds.py, the sample should be played to completion before termination to allow for any nice falloff (i.e. the end of a sine wave) to occur before the sound stops, otherwise one gets a sharp click if there is an abrupt attenuation in the sound.
There is some code to do this in the present version, but it does not work properly... need to find out why and fix.