High Resolution Timer In Android For Metronome
I'm trying to create a metronome for Android, and I wrote this code to play a beep at 300BPM using a SoundPool, but it tends to skip beats sometimes and creates lag. I have researc
Solution 1:
The solution is not to use a timer or SoundPool at all. Instead use a low-level AudioTrack that you manage continuously. You will have to synthesize the beep or click or whatever by inserting the appropriate samples into the AudioTrack at the proper point in the buffer. Just Google AudioTrack and look for samples on how it is used.
Post a Comment for "High Resolution Timer In Android For Metronome"