Skip to content

Conversation

@leezer3
Copy link
Owner

@leezer3 leezer3 commented Feb 18, 2019

This PR adds sounds played when the couplers stretch and compress.
These are ignored when the coupler distance is 0.

Sound.cfg:

[Coupler]
Stretch = file.wav
Compress = file.wav

Sound.xml

<Coupler>
    <Stretch>
        <FileName>file.wav</FileName>
        <Position>0,0,5</Position>
        <Radius>2.0</Radius>
    </Stretch>

    <Compress>
        <FileName>file.wav</FileName>
        <Position>0,0,5</Position>
        <Radius>2.0</Radius>
        </Compress>
</Coupler>

Flaws:

  • The default coupler stretch / compress distance is 5cm- In a typical train, the slack is taken up almost instantly, and it doesn't sound perfect.
  • We don't currently simulate unbraked cars, which means that the compress sound is only really heard as the train comes to a stand.
  • Using the default minimum radius, we can still hear more coupler sounds than I'd like. Perhaps drop the radius to 0.5?

@leezer3 leezer3 force-pushed the master branch 2 times, most recently from cc81e8d to cd51cfe Compare March 28, 2019 19:59
@OpenBveTrainSim
Copy link

@leezer3
Coupler sounds during acceleration\deceleration now seem a bit exagerated\amplified\unrealistic on some trains. Thanks
OBTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants