Author |
Message |
siege
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
do_pete
![](http://i38.photobucket.com/albums/e112/do_pete/1943.gif)
|
Posted: Thu May 11, 2006 8:27 pm Post subject: (No subject) |
|
|
Music.PlayFileReturn or you can make a process with Music.PlayFile in it. |
|
|
|
|
![](images/spacer.gif) |
Guest
|
Posted: Thu May 11, 2006 9:13 pm Post subject: (No 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") |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Thu May 11, 2006 9:16 pm Post subject: (No 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Darkmantis
![](http://compsci.ca/v3/uploads/user_avatars/26883420945d0bc0dc57ea.jpg)
|
Posted: Fri May 12, 2006 6:17 am Post subject: (No subject) |
|
|
Tony you just basically repeated what vahnx just said. |
|
|
|
|
![](images/spacer.gif) |
|