Make sure the downloaded library is included into your game classpath before using this audio renderer.
Note: GTGE is not associated in any way with JavaLayer, this class is only interfacing JavaLayer to be used in GTGE.
This class is created and has been tested to be working properly using JavaLayer 1.0.
How-to-use JavaLayerMp3Renderer
in GTGE Frame Work :
public class YourGame extends Game { protected void initEngine() { super.initEngine(); // set sound effect to use mp3 bsSound.setSampleRenderer(new JavaLayerMp3Renderer()); // set music to use mp3 bsMusic.setSampleRenderer(new JavaLayerMp3Renderer()); } }
|
|