Immersive Railroading

Immersive Railroading

3M Downloads

Sound System

Closed this issue ยท 3 comments

commented

TODO

commented

Working on it already

commented

Got the sounds

commented

Pro-tip. If you're going to spawn piston sounds for engines, don't do it in the main game loop. While that's the correct way, it spazzes out if you have fast queues. RoW has this issue as there's only 1/20 of a second to catch wheels being in the correct piston for a piston chuff. Since you have an in and out chuff, that's really 1/10 of a second to catch either one. That means if your wheels are going faster than 10 revs a second you're going to have sound issues.

A more robust way is to access the SoundManager in the rendering call and spawn sounds there. That way you can spawn sounds on partial ticks and make things more accurate. Also you reduce network lag as you're putting sounds directly into the sound pipeline and not passing sound events from the server to all clients.