
-----------------------------------
dehoogrules
Thu Dec 19, 2002 1:01 am

URGENT HELP NEEDED IMMEDIATELY!!! Music.SoundOff and process
-----------------------------------
Ok, for my RPG, I have a .wav file playing during the battle. The only problem is, I can't get it to stop playing!!! Music.SoundOff isn't doing anything at all! My code is like this:

process bgmusic
Music.PlayFile ("filename.wav")
end bgmusic

fork bgmusic
loop
[battle code, too long and irrelevant to post]
end loop
Music.SoundOff
Music.PlayFile ("4secondlongfile.mid")
[does irrelevant stuff]
cls
process ending
loop
Music.PlayFile ("songthatdoesntplay.mid")
end loop
end ending

fork ending
[blah blah blah]

Any ideas on why this isn't working? I can't figure it out! Music.SoundOff is supposed to work. Is there any way I can make it stop? I need help on this immediately, this is for a project which is due tomorrow!!!

-----------------------------------
Dan
Thu Dec 19, 2002 1:47 am

no time
-----------------------------------
i dont have much time to post  but make  shure you dont have a Music.PlayFile in a loop, also if you look at the titel.t file in QFTB has a good demo of how to use it. you can find it on the ftp site.

i am plaing on posting my tural on sownd in turing some day so that will help. also i am plaing to add an upload mod to the site so you can upload your code if you whont making it easer to tell us wahts wrong.

-----------------------------------
Tony
Thu Dec 19, 2002 2:40 am


-----------------------------------
there's also Music.PlayFileStop

You can look that up in turing help file for more on how to use it.

-----------------------------------
krishon
Thu Dec 19, 2002 6:51 pm


-----------------------------------
you can try to put a loop inside the process so that the music will play continually, until u stop the music.

-----------------------------------
Dan
Thu Dec 19, 2002 8:54 pm

more help
-----------------------------------
if any one needs  more help with this you can go to my new tureal here:

http://danco.no-ip.com/turing/viewtopic.php?t=190

-----------------------------------
FizixMan
Fri Dec 20, 2002 4:44 am


-----------------------------------
or if you really want... instead of having the program stop playing the .wav file, have it play an empty .wav file :wink:
