Running Android 5.1
on my Nexus 5
I'm experiencing laggy audio due to this problem. The problem is that my 44.1 KHz OGG
files are resampled (up to 48 KHz?) on playback using the SoundPool class, causing the lag.
Now, I suppose different devices are optimized for different sample rate. How can I make sure that my audio performs well on all devices? Is it possible to detect the optimal sample rate and then choose the best file from multiple audio resources?