Posted: 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
Blade
Posted: 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
Posted: 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.