android-tone-player
android-tone-player copied to clipboard
Any way to smoothly change volume or frequency during playback?
Thanks for this lib.
I was wondering if there is a way to increase/decrease volume or frequency during playback.
So far I manage to do this using ContinuousBuzzer and setting buzzer.setPausePeriodSeconds(1);
Then on button click event I increase the volume (or frequency) like this buzzer.setToneFreqInHz(freq+=30);
Which works but I experience clipping issues every 1 seconds (which is kind of expected I guess since the playback stops and restarts every 1 secs)
So I guess my question comes down to whether I can control volume or frequency in a smooth continuous sound without clipping issues or interruptions.