Computer Science Canada concurrency |
Author: | jrok311 [ Fri Apr 01, 2005 10:53 am ] | ||
Post subject: | concurrency | ||
I need to make a program that plays music at the same time as running a process using a fork because when I play music now it disables all other buttons. Here is my code.
|
Author: | Tony [ Fri Apr 01, 2005 11:01 am ] | ||
Post subject: | |||
|
Author: | jrok311 [ Fri Apr 01, 2005 11:09 pm ] |
Post subject: | concurrency |
that doesnt work, the first part goes blue so its not one of those turing things. |
Author: | RaPsCaLLioN [ Sat Apr 02, 2005 9:48 am ] | ||
Post subject: | |||
I think ur problem is with that main procedure. Mainline code should just be a loop. And Music.PlayFileReturn is the command u want....
|
Author: | person [ Sat Apr 02, 2005 12:50 pm ] |
Post subject: | |
Quote: that doesnt work, the first part goes blue so its not one of those turing things.
r u sure u typed it rite?? it worx fine for me |
Author: | Neo [ Sat Apr 02, 2005 2:01 pm ] |
Post subject: | |
He must have an earlier version. |
Author: | lordofall [ Sat Apr 02, 2005 11:40 pm ] |
Post subject: | |
y are u using processes they so sloppy instead use GUI.SetNullEventHandler, its really badly documented but basically it works like this procedure controlMusic end controlMusic GUI.SetNullEventHandler(controlMusic) now whenever no buttons are being clicked it will execute the action procedure control music, though ur gonna havta figure out the code to keep checking the music or playing it from a certain spot (unless it automatically does that) well good luck. |
Author: | person [ Sun Apr 03, 2005 11:06 am ] |
Post subject: | |
y r processes sloppy for music?? |
Author: | jrok311 [ Sun Apr 03, 2005 11:34 am ] |
Post subject: | fixed |
I found a solution to my problem. I called the procedure with a fork in it for another process, I made that process played the music. Thanks for all your help. |
Author: | lordofall [ Sun Apr 03, 2005 2:09 pm ] |
Post subject: | |
i just thought nullevent handelers better because instead of randomly going back and forth to the music it would play the music whenever nothing is going on with the user tho i guess a human ear wouldn't detect the process. |