Posts by vhpgomes
- 18.01.2006, 19:31
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
People, It's good to see that some of you are using my patch, it's a warm feeling to know that I somehow helped someone :) But enough of this sentimental crap!!! I will try to implement all the suggestions I've received (mp3, pause, url,...), but before I even start, I want to ask a single question ...
- 17.01.2006, 17:45
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
1. It works OK with .WAV files but not with .MP3's -- Are MP3's supposed to be supported? A sound as a WAV file is a lot larger than the same sound as an MP3, which means I can't share my demo with you at the moment because I'm not on broadband (it's 12-30MB with WAV's; with MP3's this would only b...
- 17.01.2006, 17:34
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
1. I have no clue what an AL library is. Do I need to "install" an AL library onto my computer before I can hear any sound from a sound script in Celestia? OpenAL is (description shamelessly taken from the OpenAL site http://www.openal.org ): OpenAL is a cross-platform 3D audio API appropriate for ...
- 17.01.2006, 17:14
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
Hi all, Sorry for the delay, but I was offline the past week... Vicent: In conclusion, Victor's sound feature doesn't seem to lower - in my case - the display performances. That's good to know :D . Here everything runs smoothly too, with or without sound. :D I'll answer the questions below, one by p...
- 06.01.2006, 11:55
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
Vincent,
I don't know why this is happening ... everything is working fine here...
I will try to figure something out on weekend...
Victor
Here's the bad one : I don't have any object displayed on screen anymore... A black screen, except the text comments...
I don't know why this is happening ... everything is working fine here...
I will try to figure something out on weekend...
Victor
- 06.01.2006, 11:51
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
Maybe they work, but not with current Microsoft programs. It tells me it needs to convert to the latest format and then craps out while doing so. hum... let me guess, you're using the release version of the source code (not the cvs one), and when you open the .dsw file, it asks to converts, then st...
- 05.01.2006, 11:44
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
suwalski, I kind of figure out how to correct those .dsp files (the .dsw turned to be alright)... didn't do it myself yet, cause didn't have the time... probably will do in the weekend... I think only the .dsp's from src/celengine and src/celestia are outdated... the main problem is that since no of...
- 05.01.2006, 01:52
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
Yeah, in the end I used that script too... but not before I lost a few hours trying to figure out what was wrong... Maybe the "official" developers could just remove the .dsw and .dsp files from the cvs ? I mean, if these files aren't used by the developers anymore, their presence can only cause con...
- 05.01.2006, 00:49
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
I think I found the problem... I finally managed to compile cvs Celestia on Windows... the .dsw and .dsp files are a little outdated... apparently nobody keeps them up... specially celengine.dsp and celestia.dsp... But back to the sound patch... when I compiled, I had the same problem: no sound (nic...
- 04.01.2006, 18:51
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
Ooops, my mistake... Surely there's another way!!! And it's even easier!!! Copy both OpenAL libraries ( OpenAL32.lib and Alut.lib ) to the lib/ directory in your celestia source tree... Then open the file celestia.mak , it's in the src/celestia directory... and add both libraries to the option LINK3...
- 04.01.2006, 13:41
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Re: Sound patch
Hi Vincent, Your Visual Studio is complaining that he can't find the OpenAL libraries. You'll have to tell him where they are located... To do that, open your solution and right click on the Celestia project, then click on Properties . A new dialog will open. On the left, find the Configuration Prop...
- 01.01.2006, 23:03
- Forum: Development
- Topic: Sound patch
- Replies: 84
- Views: 79523
Sound patch
Hello everyone, happy new year!!! I've made a few changes in the code to make Celestia support script controlled sound, i.e., you can tell the program to play a sound file in a script file. This is the "second release" of this stuff... the first one is in this topic: http://shatters.net/forum/viewto...
- 11.12.2005, 11:57
- Forum: Development
- Topic: If someone was going to intergrate a sound API into Celestia
- Replies: 25
- Views: 19111
Re: If someone was going to intergrate a sound API into Celestia
In other words, I assume the name of the .wav file does not have to be hard-coded into Celestia and can be changed by simply changing one line in a dynamic script command .... is that correct? Frank, the little code I made do just that... You can change the sound just in the script.... Unfortunatel...
- 09.12.2005, 17:56
- Forum: Development
- Topic: If someone was going to intergrate a sound API into Celestia
- Replies: 25
- Views: 19111
Re: If someone was going to intergrate a sound API into Celestia
ok The modifications I made for sound were: In src/celengine/command.h (this will create the class that will be instantied when you call the play command in a script) class CommandPlay : public InstantaneousCommand { public: CommandPlay(const std::string); void process(ExecutionEnvi...
- 08.12.2005, 22:28
- Forum: Development
- Topic: If someone was going to intergrate a sound API into Celestia
- Replies: 25
- Views: 19111
Re: If someone was going to intergrate a sound API into Celestia
For whom it may concern, I implemented a way to play sounds within Celestia... I created a new script command : play and you can use it like that: play { file "teste.wav" } I'd be happy to share my code with anyone BUT: - It works ONLY on Linux; - It plays ONLY raw .wav files; - It works just fine o...