Author |
Message |
livingheaven
![](http://compsci.ca/v3/uploads/user_avatars/12343300074bba815f781c7.png)
|
Posted: 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> |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
livingheaven
![](http://compsci.ca/v3/uploads/user_avatars/12343300074bba815f781c7.png)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
livingheaven
![](http://compsci.ca/v3/uploads/user_avatars/12343300074bba815f781c7.png)
|
Posted: Thu Mar 18, 2010 6:13 pm Post subject: Re: How to end a Music.PlayFile program??? |
|
|
it works ... lol
thx ![Mr. Green Mr. Green](http://compsci.ca/v3/images/smiles/icon_mrgreen.gif) |
|
|
|
|
![](images/spacer.gif) |
livingheaven
![](http://compsci.ca/v3/uploads/user_avatars/12343300074bba815f781c7.png)
|
Posted: Thu Mar 18, 2010 6:25 pm Post subject: Re: How to end a Music.PlayFile program??? |
|
|
what does Music.PlayFileReturn do ?
just wondering |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
livingheaven
![](http://compsci.ca/v3/uploads/user_avatars/12343300074bba815f781c7.png)
|
Posted: Thu Mar 18, 2010 6:38 pm Post subject: Re: How to end a Music.PlayFile program??? |
|
|
ok thx for the help. ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
livingheaven
![](http://compsci.ca/v3/uploads/user_avatars/12343300074bba815f781c7.png)
|
Posted: Fri Mar 19, 2010 5:37 pm Post subject: Re: How to end a Music.PlayFile program??? |
|
|
thx..for the help. ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
|