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

Username:   Password: 
 RegisterRegister   
 Loading .Wav .mp3 etc
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Namis




PostPosted: Wed Sep 17, 2003 6:58 pm   Post subject: Loading .Wav .mp3 etc

How do i add a wav or mp3 or somethin like that to my file? whats the code? Just guesing..

Load.File(C:\\song.mp3/wav)

??
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Wed Sep 17, 2003 7:16 pm   Post subject: (No subject)

Music.PlayFile ("c:/wherever/whatever.*") %<-- replace '*' with the extension (mp3, wav, mid)
Tony




PostPosted: Wed Sep 17, 2003 9:07 pm   Post subject: (No subject)

I think you have to use double slashes ( \\ ) in turing to properly load files
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Mazer




PostPosted: Wed Sep 17, 2003 9:34 pm   Post subject: (No subject)

you can use double slashes or backslash, it's up to you.
octopi




PostPosted: Wed Sep 17, 2003 11:01 pm   Post subject: (No subject)

Mazer wrote:
Music.PlayFile (c:/wherever/whatever.*") %<-- replace '*' with the extension (mp3, wav, mid)


I think you need to use a double qoute...before the c:/
Mazer




PostPosted: Thu Sep 18, 2003 8:03 am   Post subject: (No subject)

yes... that's why i put the double quote there. you... um, you seem to have quoted my post incorrectly. yes, that must be it...
Dan




PostPosted: Thu Sep 18, 2003 1:08 pm   Post subject: (No subject)

this has been covered in this tutoriale: http://www.compsci.ca/v2/viewtopic.php?t=190
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Andy




PostPosted: Sat Sep 20, 2003 10:19 pm   Post subject: (No subject)

can turing even play mp3s? i thought i tried it b4 and it didnt work...
Sponsor
Sponsor
Sponsor
sponsor
poly




PostPosted: Sat Sep 20, 2003 10:28 pm   Post subject: (No subject)

yes it can, I usually just do it by going
code:
    Music.PlayFile ("file.mp3")
[/code]
krishon




PostPosted: Mon Sep 22, 2003 7:40 am   Post subject: (No subject)

yes it can...i did it with my gamea while bak
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  [ 10 Posts ]
Jump to:   


Style:  
Search: