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

Username:   Password: 
 RegisterRegister   
 Help for adding sounds in Turing programs
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
siege




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




PostPosted: Thu May 11, 2006 8:27 pm   Post subject: (No subject)

Music.PlayFileReturn or you can make a process with Music.PlayFile in it.
Guest




PostPosted: 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")
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Darkmantis




PostPosted: Fri May 12, 2006 6:17 am   Post subject: (No subject)

Tony you just basically repeated what vahnx just said.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: