Page 1 of 2
Engine sound
Posted: Tue Sep 02, 2008 2:41 am
by pagroove
I know that in space you hear no sound. However I would like to have a constant engine humming in the background. I think it is realistic to hear your own engines from the cabin as this is an internal sound. Can ambient noise from within the ship be implemented?
If so we can have different sounds for different ships like different engines in cars for example. Then commanders could brag about the great sound of the old and rusty python engines.
Posted: Tue Sep 02, 2008 4:12 am
by CmdrLUke
But please make it optional! I don't like constant background noise....
But on the subject of sound, I really like the C64 military laser sound. It really sounded powerful, the laser sounds in oolite are all little "thweep"s. I think the fire rate was faster for the miiltary laser in c64 elite than in oolite, too. And the sound when a laser hit a ship sounded like metal getting shredded on the C64....totally awesome!
Re: Engine sound
Posted: Tue Sep 02, 2008 8:48 am
by JensAyton
pagroove wrote:I know that in space you hear no sound. However I would like to have a constant engine humming in the background. I think it is realistic to hear your own engines from the cabin as this is an internal sound. Can ambient noise from within the ship be implemented?
If so we can have different sounds for different ships like different engines in cars for example. Then commanders could brag about the great sound of the old and rusty python engines. :D
I’d suggest using
Sound.playMusic() for this, although sound sources could be used too. Have fun. :-)
Posted: Tue Sep 02, 2008 2:42 pm
by pagroove
Ok,
Didn't know that, nice.
About the background humming. It should not be to loud except for some old ship models
Re: Engine sound
Posted: Tue Sep 02, 2008 2:47 pm
by Frame
Ahruman wrote:pagroove wrote:I know that in space you hear no sound. However I would like to have a constant engine humming in the background. I think it is realistic to hear your own engines from the cabin as this is an internal sound. Can ambient noise from within the ship be implemented?
If so we can have different sounds for different ships like different engines in cars for example. Then commanders could brag about the great sound of the old and rusty python engines.
I’d suggest using
Sound.playMusic() for this, although sound sources could be used too. Have fun.
sound sources, since, play music, will cut off any other music playing... hyper radio for example...
Posted: Tue Sep 02, 2008 8:46 pm
by pagroove
I just thougt that the sound has to loop then. Is that possible. Could a scripter script such a engine sound mod easily?
Posted: Tue Sep 02, 2008 9:02 pm
by JensAyton
pagroove wrote:I just thougt that the sound has to loop then. Is that possible. Could a scripter script such a engine sound mod easily? :?:
Yes.
Code: Select all
this.source = new SoundSource;
source.loop = true;
source.play("[something]");
The downside to this is that there’s no way to make it randomly switch between variants, so you get the full repetitiveness of a loop.
Posted: Tue Sep 02, 2008 9:10 pm
by pagroove
Ahh ok. Well it's better than nothing. I'il see if I can make a test sound.
Posted: Tue Sep 02, 2008 9:55 pm
by Frame
Ahruman wrote:pagroove wrote:I just thougt that the sound has to loop then. Is that possible. Could a scripter script such a engine sound mod easily?
Yes.
Code: Select all
this.source = new SoundSource;
source.loop = true;
source.play("[something]");
The downside to this is that there’s no way to make it randomly switch between variants, so you get the full repetitiveness of a loop.
well you could include various stages,
an attack sound from speed 0 til speed 1-30% . as in throttle up, non looped
a sustain sound for speed 1-30%, for constant speed that loops
a decay sound when speed is going from 1% to 0.. that stops...
do the same for 31 to 60 %
and 61 to 100 % speed..
would require in my example 11 different sounds..
sound 1: 0-1% engine throttle up
sound 2: 1%-30 % sustained sound, looped, checks that sound 1 has completed throttle up before starting to play.. and that speed is still within 1% to 30%, need not be long...
sound 3: 1% to 0 engine shut off...
sound 4 33-32% engine throttle down
use the same procedure for transistion to 34-66% and 67%-100 %
would´nt be to hard to do(ofcourse there is allways going to be "surprises") ... however, i´m a tad busy with other things
Posted: Tue Sep 02, 2008 10:07 pm
by pagroove
Well a.t.m. I also have not the time for it. But maybe in he future.
Posted: Wed Sep 03, 2008 9:37 pm
by Rimbaud
CmdrLUke wrote:But please make it optional! I don't like constant background noise....
But on the subject of sound, I really like the C64 military laser sound. It really sounded powerful, the laser sounds in oolite are all little "thweep"s. I think the fire rate was faster for the miiltary laser in c64 elite than in oolite, too. And the sound when a laser hit a ship sounded like metal getting shredded on the C64....totally awesome!
Agreed, it sounded really good. Well worth sampling...
Re: Engine sound
Posted: Wed Sep 03, 2008 10:25 pm
by Svengali
Frame wrote:sound sources, since, play music, will cut off any other music playing... hyper radio for example...
It wouldn't make sense to play more than one song at the same time :-)
But sounds are another thing. And with the loop = true it would perfectly match the engine sound. I have thought about using sound sources, but I think that playMusic is streamed and playSound is not streamed. Or have I missed something?
Re: Engine sound
Posted: Wed Sep 03, 2008 10:54 pm
by JensAyton
Svengali wrote:But sounds are another thing. And with the loop = true it would perfectly match the engine sound. I have thought about using sound sources, but I think that playMusic is streamed and playSound is not streamed. Or have I missed something?
I don’t actually know what SDL is doing under the hood, but it looks as though that’s the way it works.
The Mac sound code streams large sounds and buffers small ones, regardless of whether they’re music. (Currently the threshold is 1 MiB of decompressed, 32-bit float audio; at 44100 Hz, that’s about five and a half seconds of mono or a little under three seconds of stereo.)
Posted: Thu Sep 04, 2008 6:34 pm
by ktulu1975
yeah - I reckon an engine sound would be good. It'd be cool to have the Blue Danube kick in when you are about to dock with a space station also...
another sound I'd like is a sort of 'ding' when the Communications Log appears on screen...
have just started playing Oolite - the first new version of Elite that I've played since the Amstrad CPC version...cheers there....
Posted: Thu Sep 04, 2008 9:50 pm
by JensAyton
ktulu1975 wrote:It'd be cool to have the Blue Danube kick in when you are about to dock with a space station also...
Doesn’t it do that already? Oh, wait, I have vague memories of a problem there in non-Mac builds that was recentlyish solved.