Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to end a Music.PlayFile program???
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
livingheaven




PostPosted: Thu Mar 18, 2010 5:41 pm   Post subject: How to end a Music.PlayFile program???

What is the problem you are having?
<When i run my program, music plays as background, but then when i close the program the music keeps on playing. Can anybody teach me how to stop the music from playing ??? THX FOR THE HELP>




[/syntax]

Please specify what version of Turing you are using
<turing 4.1.1>
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Thu Mar 18, 2010 6:02 pm   Post subject: RE:How to end a Music.PlayFile program???

You have to put Music.playfilestop in there somewhere, at the end of the program preferably. Note that if you close the program by clicking the X, Music.playfilestop might not get run, and you'll have to open the program again and close it the way it was intended to be closed.
livingheaven




PostPosted: Thu Mar 18, 2010 6:05 pm   Post subject: Re: How to end a Music.PlayFile program???

oh.. i'll give it a try.
Thx for the info
=D
livingheaven




PostPosted: Thu Mar 18, 2010 6:13 pm   Post subject: Re: How to end a Music.PlayFile program???

it works ... lol
thx Mr. Green
livingheaven




PostPosted: Thu Mar 18, 2010 6:25 pm   Post subject: Re: How to end a Music.PlayFile program???

what does Music.PlayFileReturn do ?
just wondering
Insectoid




PostPosted: Thu Mar 18, 2010 6:37 pm   Post subject: RE:How to end a Music.PlayFile program???

I dunno for sure, but I suspect it will return a value based on weather the file exists or is playable.
livingheaven




PostPosted: Thu Mar 18, 2010 6:38 pm   Post subject: Re: How to end a Music.PlayFile program???

ok thx for the help. Very Happy
copthesaint




PostPosted: Thu Mar 18, 2010 11:21 pm   Post subject: RE:How to end a Music.PlayFile program???

The Music.PlayFileReturn Is kinda like Music.PlayFileLoop but I executes once, then terminates. A good combination of both PlayFileLoop *(for possibly background music) and PlayFileReturn *(for sound effects) will give your game a nice mixture of sounds, at the cost of some of your programs run speed.

Insectoid @ Thu Mar 18, 2010 wrote:
I dunno for sure, but I suspect it will return a value based on weather the file exists or is playable.

:/ No, fail Lol. File.Exists, and if a music file isnt of improper format, Well im Definitly positively sure you can figure that out.
Sponsor
Sponsor
Sponsor
sponsor
livingheaven




PostPosted: Fri Mar 19, 2010 5:37 pm   Post subject: Re: How to end a Music.PlayFile program???

thx..for the help. Very Happy
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 9 Posts ]
Jump to:   


Style:  
Search: