Computer Science Canada

playing sound

Author:  yodu123 [ 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?

Author:  Kharybdis [ 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")

Author:  andrew. [ 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.


: