BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Glitched audio playback when using the [Sound] section

Go down

Glitched audio playback when using the [Sound] section Empty Glitched audio playback when using the [Sound] section

Post by Tony515 Sun Apr 26, 2020 6:35 am

I'm using [Sound] with multiple files, and all of them seem to glitch out before the volume completely goes away, as demonstrated in this video:

Basically, the volumefunction is designed so that certain sounds only play at certain speeds of the train.
Here's the code to one of the motor files:

Code:
[object]
States = ExceptionCode.b3d
TrackFollowerFunction = speed * 2.23694

[sound]
Filename = motor1.wav
Volumefunction = if[value + 1 * (speed * 2.23693629) >= 3.5 & value + 1 * (speed * 2.23693629) <= 6.7,if[powerNotch > 0,1,0],0]
Pitch = 1.0
Position = 0,1.2,0
Radius = 100
Tony515
Tony515

Posts : 13
Join date : 2020-04-24
Location : New York City, USA

https://www.youtube.com/channel/UCfV997Q6rT3AKS1Xom936Ew

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum