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

Username:   Password: 
 RegisterRegister   
 Playing 2 or more music/sound files.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Qwertyuiop K




PostPosted: Sat Jan 05, 2013 7:22 pm   Post subject: Playing 2 or more music/sound files.

What is it you are trying to achieve?
Play 2 or more music files at once. "Forking" a new file causes the old one to disappear.

What is the problem you are having?
Don't know how to do it / Don't know if possible.

Describe what you have tried to solve this problem
N/A

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Using Music.PlayFile

Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sat Jan 05, 2013 7:23 pm   Post subject: RE:Playing 2 or more music/sound files.

iirc, Turing can't play more than one wav file at a time. Switching to MP3s should fix your problem.
evildaddy911




PostPosted: Sat Jan 05, 2013 9:19 pm   Post subject: RE:Playing 2 or more music/sound files.

That didnt work for me insectoid... Maybe if one is WAV and the other is mp3? I may test that out tommorow...
Qwertyuiop K




PostPosted: Sat Jan 05, 2013 10:52 pm   Post subject: RE:Playing 2 or more music/sound files.

I am using all MP3 files, so that isn't the problem Sad. If it won't work, is there a way to resume the preexisting background music? I have a sound effect for collision, bur it cancels the background music. Is there a way for me to make it so that after the sound effect, the background music will resume (preferably from where it left off)?
Insectoid




PostPosted: Sat Jan 05, 2013 10:59 pm   Post subject: RE:Playing 2 or more music/sound files.

Try converting the background music to a .wav file. I remember having to screw around with sound file types all the time when I used Turing.
Qwertyuiop K




PostPosted: Sat Jan 05, 2013 11:39 pm   Post subject: RE:Playing 2 or more music/sound files.

Yep, both of you were correct. Having a .wav and a .mp3 separately will make them overlap each other! Thanks! Very Happy So I'm assuming you can have up to 3 sounds at once, since Turing only supports .wav, .mp3, and .midi.
evildaddy911




PostPosted: Sun Jan 06, 2013 10:34 am   Post subject: RE:Playing 2 or more music/sound files.

great! i think i might use that in my game Smile
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  [ 7 Posts ]
Jump to:   


Style:  
Search: