Author |
Message |
Namis
|
Posted: Wed Sep 17, 2003 6:58 pm Post subject: Loading .Wav .mp3 etc |
|
|
How do i add a wav or mp3 or somethin like that to my file? whats the code? Just guesing..
Load.File(C:\\song.mp3/wav)
?? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Mazer
|
Posted: Wed Sep 17, 2003 7:16 pm Post subject: (No subject) |
|
|
Music.PlayFile ("c:/wherever/whatever.*") %<-- replace '*' with the extension (mp3, wav, mid) |
|
|
|
|
|
Tony
|
Posted: Wed Sep 17, 2003 9:07 pm Post subject: (No subject) |
|
|
I think you have to use double slashes ( \\ ) in turing to properly load files |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Mazer
|
Posted: Wed Sep 17, 2003 9:34 pm Post subject: (No subject) |
|
|
you can use double slashes or backslash, it's up to you. |
|
|
|
|
|
octopi
|
Posted: Wed Sep 17, 2003 11:01 pm Post subject: (No subject) |
|
|
Mazer wrote: Music.PlayFile (c:/wherever/whatever.*") %<-- replace '*' with the extension (mp3, wav, mid)
I think you need to use a double qoute...before the c:/ |
|
|
|
|
|
Mazer
|
Posted: Thu Sep 18, 2003 8:03 am Post subject: (No subject) |
|
|
yes... that's why i put the double quote there. you... um, you seem to have quoted my post incorrectly. yes, that must be it... |
|
|
|
|
|
Dan
|
Posted: Thu Sep 18, 2003 1:08 pm Post subject: (No subject) |
|
|
this has been covered in this tutoriale: http://www.compsci.ca/v2/viewtopic.php?t=190 |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Andy
|
Posted: Sat Sep 20, 2003 10:19 pm Post subject: (No subject) |
|
|
can turing even play mp3s? i thought i tried it b4 and it didnt work... |
|
|
|
|
|
Sponsor Sponsor
|
|
|
poly
|
Posted: Sat Sep 20, 2003 10:28 pm Post subject: (No subject) |
|
|
yes it can, I usually just do it by going
code: | Music.PlayFile ("file.mp3") | [/code] |
|
|
|
|
|
krishon
|
Posted: Mon Sep 22, 2003 7:40 am Post subject: (No subject) |
|
|
yes it can...i did it with my gamea while bak |
|
|
|
|
|
|