Fix infinite loop bug in audio mixdown and add options for fade in and fade out.