Music - HELP (adding music to program)
Author |
Message |
bigbut600
|
Posted: Wed Nov 26, 2008 8:34 pm Post subject: Music - HELP (adding music to program) |
|
|
My 2nd question so far...
The title says it all. I just want to add music to my program as long as it's running in the execution window. I'd also like for it to repeat when the music is over. I'm pretty sure this is possible.
If anyone can, please explain in detail and examples?
Thanks again,
bigbut600 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Jurica
|
Posted: Wed Nov 26, 2008 9:38 pm Post subject: RE:Music - HELP (adding music to program) |
|
|
Lol, I just finished a project with music and asked for help yesterday. Finished it so I'll help you with it. Here is the code (don't add the [ ]'s in it):
Turing: |
% Process to continuously play background music
process PlayBackgroundMusic (filename : string)
loop
exit when finished
Music.PlayFile (filename )
end loop
end PlayBackgroundMusic
% Music
Music.PlayFileLoop ("[NameOfFile].[TypeOfFile]")
|
|
|
|
|
|
|
|
|