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
Try to run on that version.
Other than that, i fully agree with you. Gideros sound on Android is laggy and problematic. Hopefully OpenSL version come faster
see @atilim thread here http://www.giderosmobile.com/forum/discussion/1840/android-2.3-and-opensl-es
Likes: thanhquan1512
http://www.nightspade.com
Glad to know that the reason is Gideros version, not my coding style.
Ultimate Games on Appstore
Ultimate Games on Google Play