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

Username:   Password: 
 RegisterRegister   
 Playing two sounds at once
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Asok




PostPosted: Tue Apr 15, 2003 4:18 pm   Post subject: (No subject)

again, showing your code would help. Please just post the code whenever you have a problem with the actual code, it saves a lot of frustration.
Sponsor
Sponsor
Sponsor
sponsor
Blade




PostPosted: Tue Apr 15, 2003 4:43 pm   Post subject: (No subject)

i'm assuming that your problem is not being able to play a file more than once... so i used this code to test it...
code:
var anykey:string(1)
loop
getch(anykey)
if(anykey = "a")then
Music.PlayFile("c:/share/MegaMan2.wav")
end if
end loop

and it worked fine for me, the only thing with this is that you'll have to wait until the file is done being played for anything else to execute... like if you have
code:
var anykey:string(1)
loop
getch(anykey)
if(anykey = "a")then
Music.PlayFile("c:/share/MegaMan2.wav")
put "it's now done playing"
end if
end loop

you will not see the its now done playing until, it has actually stopped playing the file

if you want it to be able to keep executing the program while its playing files, then you'll have to use a process
VB_User




PostPosted: Tue Apr 15, 2003 5:51 pm   Post subject: (No subject)

Ya but i want it so that two sounds are playing and it plays more then once. Try doing that. It doesnt work for me.
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 2 of 2  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: