Its a metronome app, but this part works basically like a drum machine. I have a separate thread that is constantly writing bytes of sound and bytes of zeros to the AudioPlayer