Posted: Thu Oct 07, 2004 8:01 pm Post subject: 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
Sponsor Sponsor
Paul
Posted: Thu Oct 07, 2004 8:10 pm Post subject: (No subject)
Music.PlayFile
then press f9
circles
Posted: Thu Oct 07, 2004 8:37 pm Post subject: (No subject)
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
Posted: Fri Oct 08, 2004 12:11 pm Post subject: (No subject)
Please post your code. Specifically the part that's giving you problems.
Quote:
Music.PlayFile ( fileName : string )
code:
Music.PlayFile ("branden3.wav")
Jonny Tight Lips
Posted: Fri Oct 08, 2004 2:38 pm Post subject: (No subject)
I've got a question. What types of sounds files does turing suppert?(version 4.05)
Mazer
Posted: Fri Oct 08, 2004 2:50 pm Post subject: (No subject)
*.wav, *.mp3, and (I think) *.mod.
You might want to check the reference to be sure.
Cervantes
Posted: Fri Oct 08, 2004 3:12 pm Post subject: (No subject)
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.
code:
Music.PlayFile ("SultansOfSwing.mp3")
will only play the song if SultansOfSwing.mp3 is in the same folder as your turing program
however,