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

Username:   Password: 
 RegisterRegister   
 Problems with sounds
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tony_200004




PostPosted: Sat Jan 17, 2004 6:42 pm   Post subject: Problems with sounds

hello... i looked at the sound tutorial and got nowhere lol... well basicly this is my problem... i have music in the background.. now when the person quits my program i want to play a sound saying goodbye while the music is still playing... i dont really know sound that well and the tutorial was kinda confusing... thanks for any help
Sponsor
Sponsor
Sponsor
sponsor
shorthair




PostPosted: Sat Jan 17, 2004 6:47 pm   Post subject: (No subject)

okay here ya go

code:

var ans,ans1 : string

process music
Music.PlayFile
end music

process music1
Music.PlayFile
end music1


put "listen to some music "

fork music

put" Do you wanna quit"

get ans

if ans = "Y"

then

fork music1

end if

Tony_200004




PostPosted: Sat Jan 17, 2004 6:51 pm   Post subject: (No subject)

it says "process's may only be declared at the program or module level

this is what the first music file i have looks like

code:

process doMusic (music : string)
    loop
        Music.PlayFile (music)
    end loop
end doMusic
fork doMusic ("Casino.mp3")


thanks for any help you can provide... if we cant figure it out i can ask my friend how to do it the next time i see him
Andy




PostPosted: Sat Jan 17, 2004 7:19 pm   Post subject: (No subject)

you declared the process in a loop fcn proc or another process
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: