Fix --gain with fractional gain values.
Merge branch 'fractional-gain'