Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 adding music/soundefects from harddrive?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
circles




PostPosted: 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
Sponsor
sponsor
Paul




PostPosted: Thu Oct 07, 2004 8:10 pm   Post subject: (No subject)

Music.PlayFile
then press f9
circles




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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,
code:
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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: