refactor set-gain
control smoothing duration
microphone smoothing is configurable