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

Username:   Password: 
 RegisterRegister   
 playing sound
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yodu123




PostPosted: Fri Jun 05, 2009 11:08 pm   Post subject: playing sound

i don`t know why but my Music.PlayFile ("car sound 2.wav") is not working?
Sponsor
Sponsor
Sponsor
sponsor
Kharybdis




PostPosted: Sat Jun 06, 2009 9:25 am   Post subject: Re: playing sound

Turing:

process  PlayMusic
loop
Music.PlayFile ("car sound 2.wav")
end loop
end PlayMusic
fork PlayMusic


if the file you're playing doesn't work, try putting in EXACTLY how it looks in the double quotes area. You have to also specify the
directory path of your file. IF it's in the same directory, just the file name will do.

so for example, if you have a music file named PlayThis1.mp3, you have to put this:

Turing:
Music.PlayFile("PlayThis1.mp3")
andrew.




PostPosted: Sat Jun 06, 2009 10:13 am   Post subject: Re: playing sound

And if your music is in another folder, then do this:
Turing:
Music.PlayFile ("C:/sound.mp3")


Obviously your sound is called "sound.mp3" and it's directly in the C drive.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: