cumulative update
This commit is contained in:
@@ -10,7 +10,7 @@ namespace VeloX;
|
||||
public class EngineStreamPlayer( EngineStream stream ) : IDisposable
|
||||
{
|
||||
|
||||
private static readonly Mixer EngineMixer = Mixer.FindMixerByName( "Car Engine" );
|
||||
private static readonly Mixer EngineMixer = Mixer.FindMixerByName( "Engine" );
|
||||
public EngineStream Stream { get; set; } = stream;
|
||||
|
||||
public EngineState EngineState { get; set; }
|
||||
@@ -26,7 +26,7 @@ public class EngineStreamPlayer( EngineStream stream ) : IDisposable
|
||||
|
||||
public void Update( float deltaTime, Vector3 position, bool isLocal = false )
|
||||
{
|
||||
|
||||
|
||||
var globalPitch = 1.0f;
|
||||
|
||||
// Gear wobble effect
|
||||
@@ -51,7 +51,7 @@ public class EngineStreamPlayer( EngineStream stream ) : IDisposable
|
||||
foreach ( var (id, layer) in Stream.Layers )
|
||||
{
|
||||
EngineSounds.TryGetValue( layer, out var channel );
|
||||
|
||||
|
||||
if ( !channel.IsValid() && layer.AudioPath.IsValid() )
|
||||
{
|
||||
channel = Sound.PlayFile( layer.AudioPath );
|
||||
@@ -103,6 +103,7 @@ public class EngineStreamPlayer( EngineStream stream ) : IDisposable
|
||||
channel.Position = position;
|
||||
channel.ListenLocal = isLocal;
|
||||
channel.Paused = EngineSoundPaused || layer.IsMuted;
|
||||
channel.FollowParent = true;
|
||||
channel.TargetMixer = EngineMixer;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user