Computer Science Canada

Adding sound to the program

Author:  Big_Tom [ Mon Jun 16, 2003 11:27 am ]
Post subject:  Adding sound to the program

How can i add sound to my program? I know it has to be mp3 format and i can do that all right...it's just that i dont know what code to use. Please help me.

Author:  JayLo [ Mon Jun 16, 2003 12:16 pm ]
Post subject: 

Music.PlayFile ("filename")

remember to put the music file in the same directory as your program.

Author:  Andy [ Mon Jun 16, 2003 2:45 pm ]
Post subject: 

i dun think turing plays mp3s not sure if they fixed it

Author:  JayLo [ Mon Jun 16, 2003 2:50 pm ]
Post subject: 

they do. i think. i'll try it out.

Author:  krishon [ Mon Jun 16, 2003 3:51 pm ]
Post subject: 

ye, turing 4 can play mp3's i've done that for my proiject. as well remember to use a fork to play the music while running the other code in the program

Author:  Andy [ Mon Jun 16, 2003 4:41 pm ]
Post subject: 

ya just have
code:

process music
Music.PlayFile("musicname")
end music
fork music

Author:  Big_Tom [ Mon Jun 16, 2003 5:39 pm ]
Post subject: 

So what other types of music files does it support?

Author:  JayLo [ Mon Jun 16, 2003 5:55 pm ]
Post subject: 

.mid
.wav

Author:  born130 [ Mon Jun 16, 2003 7:05 pm ]
Post subject: 

.mp3

Author:  JayLo [ Mon Jun 16, 2003 7:22 pm ]
Post subject: 

Big_Tom wrote:
So what other types of music files does it support?
Other types stop spamming.

Author:  Andy [ Mon Jun 16, 2003 7:25 pm ]
Post subject: 

lol told ben, go Jay Lo, way to shut him down, lol 8)

Author:  Big_Tom [ Mon Jun 16, 2003 8:26 pm ]
Post subject: 

wha? i dont see how that was spam...thanks for the help though.


: