June 2013
Beginner
352 pages
9h 5m
English
Let's create an audio node in the simpleInitApp() method, and play it:
Main.java and name the class BackgroundSounds.java. Remember to also refactor the first line of the main() method to BackgroundSounds app = new BackgroundSounds();.River.ogg sound file into the assets/Sounds/Environment/ directory.simpleInitApp() method to load the sound into an audio node:public void simpleInitApp() {
AudioNode natureAudio = new AudioNode(
assetManager, "Sounds/Environment/River.ogg");5. 10 is loudest, 0 is silent.natureAudio.setVolume(5);
true. Note that if ...Read now
Unlock full access