This tutorial shows the use of multiple OpenAL sources to play different sounds simultaneously. After compiling and starting the OpenALTutorial.java you should hear footsteps on the left side and every 2 seconds an explosion. The explosion will move from right to left (in 5 steps) and then jump to the right side again. If you get an exception starting the program please check that "tutorial/...wav" sound files are located in the working directory.

69// play an explosion every 2 seconds70if(explosionSoundSource.bind()){71explosionSoundSource.stop();7273// explosion sound moves from right to left side74explosionSoundSource.setPos(explosionX, 0, 0);75explosionSoundSource.play(explosion);76}