It is a contribution of Audio Engine that you can use through AudioManager and sound objects: SoundEffect, Music.
You have to load the audio data you want to use:
AudioManager.loadSound("assets/sounds/block_destroy_clap.ogg", "Progressia:BlockDestroy", AudioFormat.MONO);
Then you generate sound object:
SoundEffect sfx = new SoundEffect("Progressia:BlockDestroy");
Give it some options
sfx.setPosition(getSelection().getPoint());sfx.setPitch((float) (Math.random() + 1 * 0.5));
It is a contribution of Audio Engine that you can use through AudioManager and sound objects: SoundEffect, Music.
AudioManager.loadSound("assets/sounds/block_destroy_clap.ogg", "Progressia:BlockDestroy", AudioFormat.MONO);
SoundEffect sfx = new SoundEffect("Progressia:BlockDestroy");
sfx.setPosition(getSelection().getPoint());
sfx.setPitch((float) (Math.random() + 1 * 0.5));
sfx.play(false);