
-----------------------------------
circles
Thu Oct 07, 2004 8:01 pm

adding music/soundefects from harddrive?
-----------------------------------
i ahve a program, and i need to add in a sound effect and/or music. how do i do this? do i need to put the wav file in a certain folder or something? i have the sound file on my computer, btu i dont know the command of how to input it into the program.

if it helps any, im running version 3.1.1A

-----------------------------------
Paul
Thu Oct 07, 2004 8:10 pm


-----------------------------------
Music.PlayFile
then press f9

-----------------------------------
circles
Thu Oct 07, 2004 8:37 pm


-----------------------------------
i know the f9 thing, and ive done it. i have that all setup and i ahve the file inside of the brackets, in quotes, but it wont play it! whats wrong? i can give yoiu the code if needed.

-----------------------------------
Delos
Fri Oct 08, 2004 12:11 pm


-----------------------------------
Please post your code.  Specifically the part that's giving you problems.


Music.PlayFile ( fileName : string )

Music.PlayFile ("branden3.wav")



-----------------------------------
Jonny Tight Lips
Fri Oct 08, 2004 2:38 pm


-----------------------------------
I've got a question. What types of sounds files does turing suppert?(version 4.05)

-----------------------------------
Mazer
Fri Oct 08, 2004 2:50 pm


-----------------------------------
*.wav, *.mp3, and (I think) *.mod.
You might want to check the reference to be sure.

-----------------------------------
Cervantes
Fri Oct 08, 2004 3:12 pm


-----------------------------------
Check the path to make sure it's right.
if you don't specify the whole tree, it'll only look in the folder where the turing program is.
ie.
Music.PlayFile ("SultansOfSwing.mp3")
  will only play the song if SultansOfSwing.mp3 is in the same folder as your turing program
however,
Music.PlayFile ("C:\My Documents\My Music\Dire Straits\SultansOfSwing.mp3")
should play it, and it doesn't have to be in the same folder as the program.

other then that, check to make sure everything is spelled correctly.
