Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
You can't stop the music — Gideros Forum

You can't stop the music

WauloKWauloK Member
edited April 2013 in General questions
What's wrong with this?
	titletune = Sound.new("audio/DST-TheSignal.mp3")
	titletune:play(100,true)
	titletune:stop()
No matter where in my code I put the stop() request, all I get is:

attempt to call method 'stop' (a nil value)

Even if it is directly after a play() as above.
Cheers!
Gideros Tutorials and Mobile apps:
http://BlueBilby.com/

Comments

  • petecpetec Member
    I think you need to use a sound channel e.g.
    soundChannel=titletune:play(100,true)
    then you should be able to use
    soundChannel:stop()
    to stop it.
    I think that works.
  • That did it! Thanks so much! :D
    Gideros Tutorials and Mobile apps:
    http://BlueBilby.com/
Sign In or Register to comment.