I\'m trying to develop an Android aplication that uses some sounds and mix them together for creating music compositions. At the beggining I tried just to reproduce sounds a
If you were using raw PCM data, averaging the samples would work fine. What you need to do is convert the OGG file into a PCM buffer first. If you'd like to keep the output as OGG, you'll need to convert that back after you're done.
My experience is mostly with MP3 libraries rather than OGG, but I hear good things about JOrbis.
In this way
soundPool = new SoundPool(NUM_SOUNDS, AudioManager.STREAM_MUSIC, 0);
NUM_SOUNDS is the number sounds soundPool can play togheter.