1 decade ago by gxxaxx
I am attempting to add more than one music tracks to my game.
Things started to go haywire so I switched to the pong game source and plugged my code into that.
in main.js we have
Running this game gives me more than one track playing.
Seems like after the first track completes, the first track repeats AND the second track is called. Not sure really
You can listen to it on:
http://www.xxaxxsoft.com/impact/musictest/baked.html
Could be my browser, my computer, the sound files, ????
The ogg and mp3 both indicated "one shot" when I looked at the properties in sound forge.
Any clues welcome
Things started to go haywire so I switched to the pong game source and plugged my code into that.
in main.js we have
init: function() { ig.input.bind( ig.KEY.UP_ARROW, 'up' ); ig.input.bind( ig.KEY.DOWN_ARROW, 'down' ); ig.music.add( 'media/music/test03.*' ); ig.music.add( 'media/music/test04.*' ); ig.music.volume = 0.5; ig.music.play(); this.loadLevel( LevelMain ); },
Running this game gives me more than one track playing.
Seems like after the first track completes, the first track repeats AND the second track is called. Not sure really
You can listen to it on:
http://www.xxaxxsoft.com/impact/musictest/baked.html
Could be my browser, my computer, the sound files, ????
The ogg and mp3 both indicated "one shot" when I looked at the properties in sound forge.
Any clues welcome