and i found that there was a dealy of less then 6 seconds.
may be it has somting to do with the fork, i have had troble with forks and playing files in turing b4.
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
PHP God
Posted: Sun Sep 14, 2003 12:27 am Post subject: (No subject)
The files are about 5 seconds long, and MP3 is as low as I go.
As well, if turing were loading it, wouldn't it be stored in memory after playing once?
I'm wondering if this can be done in C++ easier, if it is, it makes it more worth learning.
Dan
Posted: Sun Sep 14, 2003 12:45 am Post subject: (No subject)
well basick C++ dose not have a comand to play mp3s built in to it. so you whould need to find a libraey file for that or make your own decoder .
but it whould probyl be faster
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
PHP God
Posted: Sun Sep 14, 2003 1:43 am Post subject: (No subject)
what about any kind of sound file?
Dan
Posted: Sun Sep 14, 2003 2:49 pm Post subject: (No subject)
to my knogale standered C/C++ dose not come with an libreay to play sound files but i know there are ones out there.
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
PHP God
Posted: Sun Sep 14, 2003 3:11 pm Post subject: (No subject)
Are you dyslexic man, I can't understand a word you say. Someone oughtta code a translator.
negative8.jpg
Description:
Filesize:
20.4 KB
Viewed:
10649 Time(s)
Sponsor Sponsor
AsianSensation
Posted: Sun Sep 14, 2003 4:07 pm Post subject: (No subject)
jeez, it's just Dan speak...
maybe it's a good idea to learn it so you could understand what he is talking about? Dan actually gives out good ideas once in a while.
and if you seriously can't understand him (well, sucks for you) than here is a translated version:
Quote:
to my knogale standered C/C++ dose not come with an libreay to play sound files but i know there are ones out there.
=
Quote:
to my knowledge standard C/C++ does not come with a library to play sound files, but I know there are ones out there.
PHP God
Posted: Sun Sep 14, 2003 6:02 pm Post subject: (No subject)
I know man, jk.
Catalyst
Posted: Sun Sep 14, 2003 6:34 pm Post subject: (No subject)
if u want to do music in c++ u might want to look into DirectSound or DirectMusic
Dan
Posted: Sun Sep 14, 2003 9:55 pm Post subject: (No subject)
PHP God wrote:
Are you dyslexic man...
yes
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
krishon
Posted: Mon Sep 15, 2003 6:23 pm Post subject: (No subject)
i dun't think fork shuld be a problem...it worked for my game when i used it
Mazer
Posted: Tue Sep 16, 2003 4:13 pm Post subject: (No subject)
AsianSensation wrote:
and if you seriously can't understand him...
everyone can understand Dan! check it out:
Quote:
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
Amzanig huh?
Dan
Posted: Tue Sep 16, 2003 4:22 pm Post subject: (No subject)
see, and i allmost all ways get the 1st and last letters right (almost)
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!