I'm using oboe library in my app to generate sound. Their example SineGenerator is pretty much exactly what I need, just a simple sine wave that generates a frequency that I need. This generated sine wave is later user in the PlayAudioEngine.
The problem is that more often than not, there's a clicking sound at the beginning or at the end of the audio I play. I play the sounds in short consecutive bursts, usually between 50 - 150ms in length.
I don't really have experience in generating audio waves, so maybe this is just me not seeing something very obvious. I've tried optimizing the performance (compiler flags + code) as suggested in this article but that yielded no results. I've also tried ramping down the amplitude, but no noticeable results.
Any suggestions are appreciated. Thanks!