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.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Moderators: winston, another_commander
I’d suggest using Sound.playMusic() for this, although sound sources could be used too. Have fun. :-)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
sound sources, since, play music, will cut off any other music playing... hyper radio for example...Ahruman wrote:I’d suggest using Sound.playMusic() for this, although sound sources could be used too. Have fun.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.
Yes.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? :?:
Code: Select all
this.source = new SoundSource;
source.loop = true;
source.play("[something]");
well you could include various stages,Ahruman wrote:Yes.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?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.Code: Select all
this.source = new SoundSource; source.loop = true; source.play("[something]");
Agreed, it sounded really good. Well worth sampling...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!
It wouldn't make sense to play more than one song at the same time :-)Frame wrote:sound sources, since, play music, will cut off any other music playing... hyper radio for example...
I don’t actually know what SDL is doing under the hood, but it looks as though that’s the way it works.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?
Doesn’t it do that already? Oh, wait, I have vague memories of a problem there in non-Mac builds that was recentlyish solved.ktulu1975 wrote:It'd be cool to have the Blue Danube kick in when you are about to dock with a space station also...