Back to project page X3n0break.
The source code is released under:
GNU General Public License
If you think the Android project X3n0break listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.x3n0m0rph59.breakout; //from w ww. j av a 2 s . c o m import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Sound; public final class SoundSprite { private final Sound sound; public SoundSprite(String filename) { sound = Gdx.audio.newSound(Gdx.files.internal(filename)); } public void play(float pitch, float volume) { sound.play(volume, pitch, 0); } public void stop() { sound.stop(); } public void dispose() { sound.dispose(); } }