Computer Science Canada Help for adding sounds in Turing programs |
Author: | siege [ Thu May 11, 2006 7:48 pm ] |
Post subject: | Help for adding sounds in Turing programs |
How may i add sounds such as mp3/wav files in turing? |
Author: | do_pete [ Thu May 11, 2006 8:27 pm ] |
Post subject: | |
Music.PlayFileReturn or you can make a process with Music.PlayFile in it. |
Author: | Anonymous [ Thu May 11, 2006 9:13 pm ] |
Post subject: | |
Yeah basically this: % Plays the song before next statment excecutes Music.PlayFile("C:/Documents and Settings/song.mp3") % Plays the song during other statments Music.PlayFileReturn("C:/Documents and Settings/song.mp3") |
Author: | Tony [ Thu May 11, 2006 9:16 pm ] |
Post subject: | |
vahnx - that's not it Music.PlayFile() will play the sound file until the end, then continue with the program Music.PlayFileReturn() will create a new thread and play the sound file inside of it. This allows the rest of the program to continue while the music plays |
Author: | Darkmantis [ Fri May 12, 2006 6:17 am ] |
Post subject: | |
Tony you just basically repeated what vahnx just said. |