Engine sound

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Engine sound

Post 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. :D
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
CmdrLUke
Deadly
Deadly
Posts: 170
Joined: Sun Aug 31, 2008 3:23 pm

Post 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!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Engine sound

Post 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. :-)
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Ok,

Didn't know that, nice.
About the background humming. It should not be to loud except for some old ship models :D
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Re: Engine sound

Post 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. :D
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...
Bounty Scanner
Number 935
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post 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? :?:
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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.
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Ahh ok. Well it's better than nothing. I'il see if I can make a test sound. :D
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post 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
Bounty Scanner
Number 935
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Well a.t.m. I also have not the time for it. But maybe in he future.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Rimbaud
Dangerous
Dangerous
Posts: 86
Joined: Fri Dec 23, 2005 7:32 pm
Location: London
Contact:

Post 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...
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Engine sound

Post 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?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Engine sound

Post 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.)
ktulu1975
Harmless
Harmless
Posts: 1
Joined: Tue Sep 02, 2008 7:48 pm

Post 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....
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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.
Post Reply