
-----------------------------------
facultyofmusic
Sat Apr 04, 2009 2:44 pm

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?

-----------------------------------
chrisbrown
Sat Apr 04, 2009 2:58 pm

RE:Multiple sound in Turing?
-----------------------------------

process playfile(f : string)
    Music.PlayFile(f)
end process

fork playfile("song1.mp3")
fork playfile("song2.mp3")


-----------------------------------
BigBear
Sat Apr 04, 2009 3:00 pm

RE:Multiple sound in Turing?
-----------------------------------
Look up Music.PlayFileLoop in F10 Help 

there is an example of background music and another sound overtop

-----------------------------------
Tony
Sat Apr 04, 2009 3:09 pm

RE:Multiple sound in Turing?
-----------------------------------
learn to read documentation

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.

