gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Audio > Volume Ramps?!

#34698 - ProblemBaby - Mon Jan 24, 2005 4:09 pm

Some looping sounds make a click noise when the note is changed
is a volumeramp the way to get rid of this or can it be something else
for example when I dont play the song just play some notes, it doesnt click so I aint totally sure that this is the problem, any thoughts?

#34753 - ProblemBaby - Tue Jan 25, 2005 4:51 pm

Now iam sure that this is the problem (it stops to far away from amp: 0)!
How much do you think I should fade out each sample?
and how many samples should I fade?
Maybe it should be different depending on something but I dont know what!

Do someone know how fasttracker or modplugtracker made it?
in these programs it doesnt click!

Thanks in advance

I forgot, I also wonder what kind of fade I should use something like
vol -= x;
or maybe
vol = (vol * 7) >> 3;

and should non-looping samples do it as well?