Use another method to scale by envelopValue.
Merge pull request #1901 from oioitff/audio-fix2

Use another method to scale by envelopValue.