Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Sound problems? — Gideros Forum

Sound problems?

edited April 2013 in General questions
Hi folks,

When I use new version of Gideros (v2012.9.9), there are a lot of sound related problems compare to old version (v2012.9.2), it crashing the game and even cannot start game again

Here are reports:
java.lang.NullPointerException
at com.giderosmobile.android.player.GGMediaPlayerManager.BackgroundChannelStop(GGMediaPlayerManager.java:250)

java.lang.IllegalStateException
at android.media.MediaPlayer._stop(Native Method)

java.lang.IllegalStateException
at android.media.MediaPlayer.getDuration(Native Method)

This is my code:
local chnEndgame = nil
local sndEndgame = Sound.new("music/endgame.mp3")
 
if soundOn then
	if chnEndgame ~= nil then
		chnEndgame:stop()
		chnEndgame = nil
 
		chnEndgame = sndEndgame:play(0, 1)
	else
		chnEndgame = sndEndgame:play(0, 1)
	end
end
Any help for working with sound in new version? Thanks for your help!

Comments

Sign In or Register to comment.