it has nothing to do with JACK.

you need to pump events/notifications/requests into the process thread/callback via your own mechanism (lock-free FIFOs are common) and act on them from there.

On Wed, Sep 6, 2017 at 1:16 PM, benravin <ben.alex@outlook.com> wrote:
Ok, my requirement is to apply fade-in on first audio period when audio
starts, and do fade-out on last audio period when stopped to avoid any audio
glitches. These start and stop is based on user selection and De-selection
of audio.  How is  it possible with Jack ?