Author |
Message |
PHP God
|
Posted: Mon May 26, 2003 5:17 pm Post subject: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Asok
![](http://www.battle.net/war3/images/neutral/units/animations/pandarenbrewmaster.gif)
|
Posted: Mon May 26, 2003 5:19 pm Post subject: (No subject) |
|
|
put it into a process. fork the process on command from the user. |
|
|
|
|
![](images/spacer.gif) |
PHP God
|
Posted: Mon May 26, 2003 5:21 pm Post subject: (No subject) |
|
|
what is a process and how the hell do I fork (total noob) |
|
|
|
|
![](images/spacer.gif) |
Catalyst
![](http://catalyze.mine.nu/jack_of_spades+100.jpg)
|
Posted: Mon May 26, 2003 5:22 pm Post subject: (No subject) |
|
|
code: | process play
Music.PlayFile ("blah.midi")
end play
fork play
loop
%%blah
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
Solo
![](http://nid.homeip.net/~sale/Solo.gif)
|
Posted: Mon May 26, 2003 5:33 pm Post subject: To keep it playing. |
|
|
Catalyst wrote: code: | 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
|
|
|
|
|
|
![](images/spacer.gif) |
PHP God
|
Posted: Mon May 26, 2003 7:19 pm Post subject: (No subject) |
|
|
wow, I'll never forget that one, can anyone tell me what page of the manual that stuff is on? |
|
|
|
|
![](images/spacer.gif) |
PHP God
|
Posted: Mon May 26, 2003 7:43 pm Post subject: (No subject) |
|
|
code: |
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
??? It doesn't work. |
|
|
|
|
![](images/spacer.gif) |
void
![](http://www.ci.oshkosh.wi.us/Fire/images/SKULL.GIF)
|
Posted: Mon May 26, 2003 8:49 pm Post subject: (No subject) |
|
|
code: |
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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Solo
![](http://nid.homeip.net/~sale/Solo.gif)
|
Posted: Mon May 26, 2003 9:11 pm Post subject: Waves. |
|
|
I know wave files are huge, but they are what turing reads the best, i suggest using them. |
|
|
|
|
![](images/spacer.gif) |
krishon
|
Posted: Mon May 26, 2003 9:28 pm Post subject: (No subject) |
|
|
but u know turing can play mp3 rite, but only the newer one can, 4.04b |
|
|
|
|
![](images/spacer.gif) |
void
![](http://www.ci.oshkosh.wi.us/Fire/images/SKULL.GIF)
|
Posted: Mon May 26, 2003 9:54 pm Post subject: (No subject) |
|
|
nice avatar krishon....and yes the 4.04b and 4.04c play mp3...but all others dont |
|
|
|
|
![](images/spacer.gif) |
PHP God
|
Posted: Thu May 29, 2003 5:45 am Post subject: (No subject) |
|
|
is there anywhere I can get a free version or a BETA of 4? I'm runnin on 3. |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Thu May 29, 2003 10:18 pm Post subject: (No subject) |
|
|
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. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
|