
-----------------------------------
PHP God
Mon May 26, 2003 5:17 pm

Playing a midi file in the background and having it loop
-----------------------------------
I am making a game, and I made some midi files for it. How can I make the music loop continuosly throughout, while allowing the user to toggle it.

-----------------------------------
Asok
Mon May 26, 2003 5:19 pm


-----------------------------------
put it into a process. fork the process on command from the user.

-----------------------------------
PHP God
Mon May 26, 2003 5:21 pm


-----------------------------------
what is a process and how the hell do I fork (total noob)

-----------------------------------
Catalyst
Mon May 26, 2003 5:22 pm


-----------------------------------
process play 
Music.PlayFile ("blah.midi")
end play

fork play

loop
%%blah
end loop



-----------------------------------
Solo
Mon May 26, 2003 5:33 pm

To keep it playing.
-----------------------------------
process play 
     loop % add this loop if you want it to keep playing
          Music.PlayFile ("blah.midi")
     end loop
end play

fork play

loop
%%blah
end loop



-----------------------------------
PHP God
Mon May 26, 2003 7:19 pm


-----------------------------------
wow, I'll never forget that one, can anyone tell me what page of the manual that stuff is on?

-----------------------------------
PHP God
Mon May 26, 2003 7:43 pm


-----------------------------------

process music
 Music.PlayFile ("intro.mp3")
 loop
 Music.PlayFile ("loop.mp3")
 end loop
end music


thats a code i wrote, so to start the music i just have to go


fork music


??? It doesn't work.

-----------------------------------
void
Mon May 26, 2003 8:49 pm


-----------------------------------

process bg_sound
loop
Music.PlayFile("yourfile.wma")
end loop
end bg_sound

fork bg_sound

it prolly din work because turing doesnt read MP3 files..only wma...or something like that...im not sure...i've never used songs in my proggiez

-----------------------------------
Solo
Mon May 26, 2003 9:11 pm

Waves.
-----------------------------------
I know wave files are huge, but they are what turing reads the best, i suggest using them.

-----------------------------------
krishon
Mon May 26, 2003 9:28 pm


-----------------------------------
but u know turing can play mp3 rite, but only the newer one can, 4.04b

-----------------------------------
void
Mon May 26, 2003 9:54 pm


-----------------------------------
nice avatar krishon....and yes the 4.04b and 4.04c play mp3...but all others dont

-----------------------------------
PHP God
Thu May 29, 2003 5:45 am


-----------------------------------
is there anywhere I can get a free version or a BETA of 4? I'm runnin on 3.

-----------------------------------
Dan
Thu May 29, 2003 10:18 pm


-----------------------------------
we cant relay give you a driect link or tom west will try and shut us down but...

*cough* turing subsmions *cough*

i am shure you may get your hands on a copy.
