I have encountered a really weird issue on my Galaxy Nexus. What I'm trying to do is load 48 OGG samples into SoundPool at the start of my service (music related application). Files are 11-15K each. Loading code is simple:
for (String note : sm) { // 48 iterations
int soundId = soundPool.load(getResources().getAssets().openFd(note), 1);
loadedSoundsMap.put(note, soundId);
}
I have measured that on my Nexus One 2.3.6 I loads in 1-2 seconds. But on a brand new Galaxy Nexus 4.0.2 it loads in 9 seconds!
I really doubt it's a file IO taking so much time to read 1mb total, so I think something is screwed up in decompressor implementation.
Can anyone suggest what could cause such slow work?
P. S. Mp3 gives about the same picture.