hey guys i'm "fine tuning" my game
but some time SoundChannel:stop() dosn't stop the sound...
i double checked my code but when game ends i use SoundChannel:stop()
to stop music channel but sometime it's not stop... (i seems random)
but it happens only if compiled and installed and real device (android);
on pc or wifi under android players it works fine...
it's possible that the player and the compiled game behave differently?
has already happened to someone?
thanks.
TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
www.tntengine.com
Comments
yes me too...
the examples work fine.. also for me
it's in my game that don't work ...
www.tntengine.com
how do you loop background music? i use sound:play(0, 1000), is that enough?
www.tntengine.com
Ok. I tried to understand the problem ... because in my game some time sound do not stop...
i don't know if i misunderstood the use of play, stop and channel system
but....
if i use:
but if i start to play two or tree times the music channel with
but
but if the channel is in play is not enough just say stop?
i coded a little example to test:
http://www.4shared.com/zip/bQxJiZcI/soundTest1.html
what do you think?
www.tntengine.com
On the other hand, after your bug report, we've improved the mp3 playing on Android when there are multiple mp3 files loading simultaneously. And after this fix, I haven't seen any mp3 playing issues with your game. Thank you.
(I cannot connect 4shared.com, you can upload it somewhere else?)
i don't know why but i was thinking that
and that recalling musicChannel = musicTrack:play()
don't create a new sound channel but stop the previous and restart!!
but not why passing the channel to play() stop() etc. to avoid unwanted multiple channel play?
like:
www.tntengine.com
But you can always stop the previous one and start playing again: