amishshah / prism-media

Easily transcode media using Node.js 🎶
https://amishshah.github.io/prism-media
Apache License 2.0
241 stars 55 forks source link

feat(VolumeTransformer): smooth volume transition #95

Closed twlite closed 2 years ago

twlite commented 2 years ago

I may have implemented it incorrectly/in a wrong/inefficient way. Please feel free to correct me if that's the case. This update allows smooth volume transition (for example incrementing volume by 0.1 until it reaches the desired volume or vice versa) which is disabled by default. Users can set the desired smoothness quality while instantiating VolumeTransformer.

resolves #85

twlite commented 2 years ago

Audio Samples

There is a few seconds delay on both before the transformation is applied