Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Problem with sound in Gideros (pauses game slightly) [Solved] — Gideros Forum

Problem with sound in Gideros (pauses game slightly) [Solved]

Tom2012Tom2012 Guru
edited October 2012 in General questions
Got a problem with Gideros where playing a sound causes a slight but noticeable blip in performance than causes a jerk in the game. I'm using slightly modified code from the example game.
-- sounds
 
--sounds
sounds = {}
 
--load all your sounds here
--after that you can simply play them as sounds.play("hit")
sounds.fall = Sound.new("Sounds/fall.mp3")
 
--play sounds
sounds.play = function(sound)
		sounds[sound]:play()
end
Then I use:
sounds.play("fall")
What do I need to do to fix this?

Thanks

Tom

Comments

Sign In or Register to comment.