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

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




PostPosted: Sat Apr 04, 2009 2:44 pm   Post subject: Multiple sound in Turing?

Is there a way to play 2 files at the same time? For Music.PlayFileReturn, if you start a new music file, the old one ends. I need to have multiple sound files playing at the same time (using turing, not wmplayer etc).

Anyone know what to do?
Sponsor
Sponsor
Sponsor
sponsor
chrisbrown




PostPosted: Sat Apr 04, 2009 2:58 pm   Post subject: RE:Multiple sound in Turing?

Turing:

process playfile(f : string)
    Music.PlayFile(f)
end process

fork playfile("song1.mp3")
fork playfile("song2.mp3")
BigBear




PostPosted: Sat Apr 04, 2009 3:00 pm   Post subject: RE:Multiple sound in Turing?

Look up Music.PlayFileLoop in F10 Help

there is an example of background music and another sound overtop
Tony




PostPosted: Sat Apr 04, 2009 3:09 pm   Post subject: RE:Multiple sound in Turing?

learn to read documentation
Music.PlayFileReturn
Quote:

On the PC, different formats of music can play simultaneously. This means that a program might use a MIDI file as a background soundtrack and then use WAVE files for individual sound effects. The sound effects would not interfere with the background music. Playing a second music file with the same format as an already playing piece immediately halts the first piece and starts the second. This can be used to stop a single type of music by playing a short silent piece of music.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: