chipweinberger / flutter_pcm_sound

A flutter plugin for playing raw PCM audio data (16-bit integer)
Other
16 stars 7 forks source link

Handling fades #11

Open wsievern opened 7 months ago

wsievern commented 7 months ago

What's up everyone,

Over the last couple of days I have been figuring out how to implement clean (popless) fade outs when stopping playback. It's working, and sounding great!

The implementations for Android and iOS vary quite a bit because of differences between how the mSamples buffer is handled on each platform.

I'll add a PR later today @chipweinberger so you can check it out!

Will

chipweinberger commented 7 months ago

in my app i handle fades in the dart code

i don't think it should be handled in native code

but feel free to open a pr

bbischler commented 1 week ago

Hi @chipweinberger Could you give me an example of how you handled fade in/out? I cant seems to figure it out. Thanks!