Not sure if this is the right place for this post, but it seems to be the best fit.
I created an audio core for a game, and it works fine, except on occasion there is a very faint pop. It's not present in the sound clips (which are in Ogg Vorbis format), and I'm using the VorbisSPI to decode them. The core works like this:
It creates an audio line for each sound to be played, and loads a buffer from the file. A
thread is running in the background which then pipes as much data as the line can hold out of the buffer, and into the line, refilling the buffer from the file.
I'd post code, but I feel there's way too much to post, and it's spread out over a few classes. I thought the pops might have something to do with the VM being bogged down with creating and loading buffers, so I created a circular buffer for the decoded data, and it does pop less, but it still pops. I'm completely at a loss for ideas.
If you need or would like to see the code, I'll post a simplified version of it. I just don't have one right now.
Thanks in advance.