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

Username:   Password: 
 RegisterRegister   
 Music Running IN a proc
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
shakin cookie




PostPosted: Fri Jan 11, 2008 5:49 pm   Post subject: Music Running IN a proc

ok, so i have music playing at the end of my program. It is in a procedure that is called by a button, so i cannot process the music and the proc. How can i get them to run at the same time?

Here is the code:

Turing:

proc display
    title
    Music.PlayFile ("2001_theme.mp3")
    locate (5, 1)
    put "Alex:  Here it is!"
    delay (200)
    put ""
    put "The moment you have been waitin' for!"
    delay (200)
    put ""
    put "Your Pimped...Out...Ferrari...Spider!!!"
    var car1 : int := Pic.FileNew ("ferrari-s+c(r)+b(s)+h(s).bmp")
    Pic.DrawSpecial (car1, 10, -50, picCopy, picFadeIn, 1000000)
end display
[/syntax]
Sponsor
Sponsor
Sponsor
sponsor
shakin cookie




PostPosted: Fri Jan 11, 2008 5:52 pm   Post subject: RE:Music Running IN a proc

and here is the button that calls it:

Turing:

proc doorfs1
    title
var carButton1 : int := GUI.CreateButton (50, 100, 0, "Fin", display)
    loop
        exit when GUI.ProcessEvent
    end loop
end doorfs1
[/syntax]
Nick




PostPosted: Fri Jan 11, 2008 6:50 pm   Post subject: RE:Music Running IN a proc

put the music in a process as you normally would then when the proc is called then fork your process throgh the proc
shakin cookie




PostPosted: Sun Jan 13, 2008 12:10 pm   Post subject: RE:Music Running IN a proc

oh, ok, that works. now i can sleep at night!
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  [ 4 Posts ]
Jump to:   


Style:  
Search: