Shapes the gain at the edges of a playback buffer.
Returns the gain for one frame, applying the requested linear edge fades.