soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0);
soundId = soundPool.load(this, R.raw.my_sound, 1);
soundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {
@Override
public void onLoadComplete
(SoundPool soundPool, int sampleId, int status) {
soundPool.play(sampleId, volume, volume, 1, 0, 1.0f);
}
});